[LightDM] Setting default X session
corsac at debian.org
Sat Aug 13 09:32:10 PDT 2011
On ven., 2011-08-12 at 08:27 +0200, Didier Roche wrote:
> Package should in their postinst call this one to set themselves as
> default (using the --keep-old options) and remove them on
> install/removal. For instance:
> to set the default session to "ubuntu" for the ubuntu desktop case.
> for the greeter.
> So basically, installing them will set the first installed one (we don't
> expect having multiple greeters in a CD spin for instance) as the
> default. Then, casper has now a fix for just adding the autologin part
> without hammering those things:
> Please note that this is very similar to the patches I made for gdm back
> in the lucid days (10.04) which seems to have fit the numerous flavors
> and derivatives we have.
This might work in Ubuntu, but I don't expect each and every “desktop
environment” (including window managers) to do that. That might work as
a best effort (like I could do this in Xfce) but not for a whole
distribution like Debian.
And even with that, what happens when:
* desktop A is installed, setting the default session to A
* desktop B is installed, setting the default session to B (old default
* desktop C is installed, setting the default session to C (old default
* one of them is removed
Who is the new default, and why? I don't think there's a way to have a
really consistent situation (and one which would fit the user).
So all in all, I think that managing the default with alternatives,
which is an existing, working system which does exactly the same kind of
thing you tried to fix, might be the best way we have. It's not perfect
(the whole priority thing and the fact it's Debian-based) but it can
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 836 bytes
Desc: This is a digitally signed message part
More information about the LightDM