2011-11-23, 11:45
I am trying to have my HTPC boot into XBMC automatically, while also having a display manager active in a separate session (LightDM for example).
This way, turning the HTPC on is enough to be XBMC-ready. But I want to be able to do Ctrl+Alt+F10 (or whatever), login, and do dekstop stuff.
You can choose an XBMC session during login, no problem. You can make it auto-start by editing /etc/lightdm/lightdm.conf into something like:
But how do I simultaneously launch that second session or desktop manager?
I have searched my 'behind' off for the proper way to do this, and after missing my lunch and hating google for not being what it used to be, I learned that it was relatively easy in inittab using pts respawns. There has been much much much much much much much much much much much much much much much much much much much discussion about the topic. But ofcourse, for Ubuntu, inittab is replaced by upstart.
I couldn't find anything relevant on google and I read through the lot of the rc.x (upstart) files. Even the /etc/X11/Xsession scripts, but I cannot find out how to do this trick.
Ofcourse, we all know this startx -- :1 stuff that was kind of nerdish cool back when, but having xbmc launch autoexec.cfg to launch a shellscript to launch a new Xsession is ugly and unacceptable, if possible at all.
Is there a clean and proper way to just have them two sessions?
This way, turning the HTPC on is enough to be XBMC-ready. But I want to be able to do Ctrl+Alt+F10 (or whatever), login, and do dekstop stuff.
You can choose an XBMC session during login, no problem. You can make it auto-start by editing /etc/lightdm/lightdm.conf into something like:
Code:
[SeatDefaults]
autologin-user=xbmc
autologin-user-timeout=0
user-session=xbmc
greeter-session=unity-greeter
But how do I simultaneously launch that second session or desktop manager?
I have searched my 'behind' off for the proper way to do this, and after missing my lunch and hating google for not being what it used to be, I learned that it was relatively easy in inittab using pts respawns. There has been much much much much much much much much much much much much much much much much much much much discussion about the topic. But ofcourse, for Ubuntu, inittab is replaced by upstart.
I couldn't find anything relevant on google and I read through the lot of the rc.x (upstart) files. Even the /etc/X11/Xsession scripts, but I cannot find out how to do this trick.
Ofcourse, we all know this startx -- :1 stuff that was kind of nerdish cool back when, but having xbmc launch autoexec.cfg to launch a shellscript to launch a new Xsession is ugly and unacceptable, if possible at all.
Is there a clean and proper way to just have them two sessions?