Hello everybody, I'm trying to change the default X session in an Ubuntu derivative, and I can't figure out how to do that. I'm aware of the default-xsession and default-user-session settings in lightdm.conf, but Ubuntu has them commented out. The session wrapper seems to receive the session as an argument, but I can't find what launches the wrapper script. Also, when there's only one xsession available, I get a black screen instead of getting the only available session loaded (with auto-login enabled), which is probably a bug. The same session works fine if I disable auto-login, get to the greeter and choose the session there. So, my question is, what exactly manages default sessions, and how do I change the default session for auto-login? Cheers -- Sergey "Shnatsel" Davidoff elementary OS integrator -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/lightdm/attachments/20110630/c4a0fcfa/attachment.htm>
Hi Sergey, Sorry for the very late reply. The configuration should be (in version 0.9.0 which is about to be released): [SeatDefaults] user-session=<session name> I notice there isn't an override for autologin-session, could you file a bug if you need that? Thanks, --Robert On 30 June 2011 21:59, ?????? <shnatsel at gmail.com> wrote:> Hello everybody, > > I'm trying to change the default X session in an Ubuntu derivative, and I > can't figure out how to do that. > > I'm aware of the default-xsession and default-user-session settings in > lightdm.conf, but Ubuntu has them commented out. The session wrapper seems > to receive the session as an argument, but I can't find what launches the > wrapper script. > > Also, when there's only one xsession available, I get a black screen instead > of getting the only available session loaded (with auto-login enabled), > which is probably a bug. The same session works fine if I disable > auto-login, get to the greeter and choose the session there. > > So, my question is, what exactly manages default sessions, and how do I > change the default session for auto-login? > > Cheers > -- > Sergey "Shnatsel" Davidoff > elementary OS integrator > > _______________________________________________ > LightDM mailing list > LightDM at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/lightdm > >
Thanks for the update! In the version from recent Oneiric dailies I've worked it around with setting session=<session name> under [seat-0] in /etc/lightdm/lightdm.conf, but there are some distribution and dpkg-related issues that are not really lightdm's fault (https://bugs.launchpad.net/bugs/799754), and I'm afraid I can't edit /etc/lightdm/lightdm.conf at all until that bug is fixed (or use very ugly hacks - GRRRR!). Ubuntu seems to use undocumented features of greeter (?!) or something like that, without tweaking lightdm.conf they have the session name passed to the wrapper script as a parameter but I have no idea where do they set it... Oh well. I'm afraid I can only ask Ubuntu engineers about it now. Getting back to constructive discussion, are lines starting from # commented out or they're something else? Thanks in advance, -- Sergey "Shnatsel" Davidoff -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/lightdm/attachments/20110720/16c3c91e/attachment.htm>
On 20 July 2011 12:52, ?????? <shnatsel at gmail.com> wrote:> In the version from recent Oneiric dailies I've worked it around with > setting session=<session name> under [seat-0] in /etc/lightdm/lightdm.conf, > but there are some distribution and dpkg-related issues that are not really > lightdm's fault (https://bugs.launchpad.net/bugs/799754), and I'm afraid I > can't edit /etc/lightdm/lightdm.conf at all until that bug is fixed (or use > very ugly hacks - GRRRR!). Ubuntu seems to use undocumented features of > greeter (?!) or something like that, without tweaking lightdm.conf they have > the session name passed to the wrapper script as a parameter but I have no > idea where do they set it... Oh well. I'm afraid I can only ask Ubuntu > engineers about it now.If you're using a LightDM 0.9.0+ then the correct config is: [SeatDefaults] user-session=<session name> In the current Ubuntu package the default is "gnome", but this is a temporary fix. Didier Roche (cc'd) is working on the correct solution so that derivatives can work more easily (the installer (casper) will write lightdm.conf, it will be written when first installed, etc).> Getting back to constructive discussion, are lines starting from # commented > out or they're something else?Yes, these are comments (it's the standard .ini format)