Bug#794419: sddm doesn't source /etc/profile and $HOME/.profile
I have run into this problem too so here is a short summary.
/usr/share/sddm/scripts/Xsession is not used at all, at least when
starting KDE.
/usr/share/sddm/scripts/Xsetup is used but sourcing /etc/profile there
is wrong and has no effect anyway.
The suggested .xsessionrc workaround works. For instance:
(
echo '[ -f /etc/profile ] && . /etc/profile';
echo '[ -f "$HOME/.profile" ] && . "$HOME/.profile"'
) >"$HOME/.xsessionrc"
Another option that works but is not as clean is to add those lines to
/usr/bin/strartkde.
I hope a better fix can be found to not force every user to manually
create a file in his $HOME.
--
Francois Gouget <fgouget@free.fr> http://fgouget.free.fr/
If it stinks, it's chemistry. If it moves, it's biology.
If it does not work, it's computer science.
Reply to: