Brad DerManouelian wrote:

>On Jan 10, 2006, at 7:50 PM, John Biundo 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?
>>    
>>
To answer your question (though the other suggestions are useful to
avoid accidental exits):

6:23:respawn:/sbin/mingetty --autologin mythtv tty6

In myth's .login:
[ `tty` = '/dev/tty6' ] && exec /usr/bin/X11/startx
/usr/bin/mythfrontend -v 255 2>&1 > ~/myth.log
which doesn't start it up if you login to the account on another vt

I find that if myth ever crashes or hangs (v. rare) then
ctrl-alt-backspace kills X and the respawn restarts it.

I don't run any window managers - don't seem to need them. YMMV.

HTH

David
_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Reply via email to