[mythtv-users] How to KEEP mythtv running when user exits

Matt skd5aner at gmail.com
Thu Jan 12 19:15:18 UTC 2006


On 1/10/06, John Biundo <johnbiundo at sbcglobal.net> wrote:
> Hi all.
>
> I've got mythtv starting up automatically upon boot (by running
> mythfrontend in user mythtv's .xsession).  No problem there.
>
> But when my wife/kids exit from the top menu by mistake (one too many
> exit button presses) they're left at the befuddling command prompt.
>
> After futzing with inittab to try to get this working, and googling
> around along a bunch of wild goose chases, I'm throwing my hands up and
> beseeching the gurus how to do this.
>
> I'm running KDE.  Don't want to give it up (unless I absolutely have to).
>
> Putting a line like: m7:2345:respawn:/bin/su - mythtv -c /usr/bin/startx
> in my /etc/inittab doesn't work.  When I test it, by exiting from
> mythtv, this method fails with a message about the user not being
> allowed to start the x server.  Which puzzles me because user mythtv IS
> allowed to run startx, and the command line 'su -mythtv -c
> /usr/bin/startx' works fine when I'm logged in as root.
>
> What am I missing?  How do other people handle this?
>
> Thanks!
>
> cheers,
> john

This is how I handle it.  I start mythfrontend in the user's .xsession
to.  I use GDM to automatically login my user after 5 seconds.  When
GDM start to login my myth user, xsession automatically restart
mythfrontend.  So, mythfrontend will always return if the xsession is
exited.  You should be able to use GDM with KDE.

Matt


More information about the mythtv-users mailing list