FS#40887 - [lightdm] run users .xsession wrapper is available
Attached to Project:
Community Packages
Opened by Damjan Georgievski (damjan) - Wednesday, 18 June 2014, 17:13 GMT
Last edited by Balló György (City-busz) - Tuesday, 12 August 2014, 14:50 GMT
Opened by Damjan Georgievski (damjan) - Wednesday, 18 June 2014, 17:13 GMT
Last edited by Balló György (City-busz) - Tuesday, 12 August 2014, 14:50 GMT
|
Details
This was already present in the Xsession script shipped with
lightdm, but was removed.
I'd suggest this, instead of the "exec $@" at the end of Xsession. if [ -x "$HOME/.xsession" -a ! -d "$HOME/.xsession" ]; then echo "Loading user X session script" exec "$HOME/.xsession" $@ else exec $@ fi .xsession is a wrapper, it will provided the session that the user choose in the greeter so it can run it, if the user chooses so with "exec $@". The check is "-x -a ! -d" executable that's not a directory so that .xsession could be a link too. |
This task depends upon
Closed by Balló György (City-busz)
Tuesday, 12 August 2014, 14:50 GMT
Reason for closing: Won't implement
Tuesday, 12 August 2014, 14:50 GMT
Reason for closing: Won't implement
startx and xinit don't use ~/.xsession either. They use ~/.xinitrc
The problem with /usr/share/xsessions/user.desktop is that it will only ever run ~/.xsession so you can't use it as a wrapper for the session you choose.
why was that /etc/skel/.xsession needed?
https://bugs.archlinux.org/task/41092
Anyway, I still don't like the idea to launch a random session instead of the selected one.
that was not my proposal, my proposal was to run .xsession (if available) as a wrapper.
~/.xprofile is sourced much earlier in the Xsession process, exec-ing things there would break all other Xsession scripts.
Sorry, I'm closing this task now. You can still customize your Xsession file on your system, it's part of the backup array of the lightdm package.