[Pkg-xfce-devel] Bug#846222: x11-common: Please provide a default xsession in /usr/share/xsessions

Maximiliano Curia maxy at gnuservers.com.ar
Fri Jan 4 15:33:20 GMT 2019


¡Hola Michael!

El 2017-11-06 a las 13:31 +0100, Michael Biebl escribió:
> Another issue I noticed:
> gdm3 uses /etc/gdm3/Xsession
> sddm uses /etc/sddm/Xsession
> lightdm uses /etc/X11/Xsession

> to start this special default session.

> I wonder if there would be potential for unification (i.e. all affected
> display managers using the Xsession script from x11-common) or does
> someone know why it could be beneficial to keep separate Xsession
> scripts per display manager?

I can only speak for the sddm's Xsession which is a wrapper arround Debian's 
/etc/X11/Xsession, what it does is to try to set the corresponding shell 
environment by loading the user profile files.

For example the bash part reads:
    [ -z "$BASH" ] && exec $SHELL $0 "$@"
    set +o posix
    [ -f /etc/profile ] && . /etc/profile
    if [ -f $HOME/.bash_profile ]; then
      . $HOME/.bash_profile
    elif [ -f $HOME/.bash_login ]; then
      . $HOME/.bash_login
    elif [ -f $HOME/.profile ]; then
      . $HOME/.profile
    fi

The sourced profiles take care of things like adding /usr/games to the PATH, 
which was loudly asked by our users when the wrapper wasn't present.

Happy hacking,
-- 
"Fighting patents one by one will never eliminate the danger of software 
patents, any more than swatting mosquitoes will eliminate malaria."
-- Richard M. Stallman
Saludos /\/\ /\ >< `/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnome-maintainers/attachments/20190104/28ba1e3a/attachment.sig>


More information about the pkg-gnome-maintainers mailing list