[mythtv-users] VNC launches second mythfrontend
Thomas Börkel
thomas at boerkel.de
Tue Apr 19 20:13:37 UTC 2005
HI!
Allan Risk wrote:
> I've found that if I run vncserver that a second mythfrontend is running
> as shown by 'ps -A'.
> This second mythfrontend can be independently closed from the vnc client
> and the one on the console remains.
> The vnc session that appears on the remote client is otherwise different
> than the console session.
>
> Here's my theory. If anyone has suggestions on how to avoid this it
> would be most welcome.
>
> I use Jarod's ~/.kde/Autostart/myth-load.sh, which among other things
> starts mythfrontend.
> Since vnc starts a new KDE session, I think this gets run again for the
> vnc session and therefore mythfrontend starts a second time.
I am checking for the $DISPLAY variable in my start script like this:
if [ $DISPLAY == ":0" ] ; then
nvidia-settings -l
mythfrontend
fi
If your $DISPLAY is ":0.0" for a local session, then you have to modify
the script.
Thomas
More information about the mythtv-users
mailing list