Source ~/.profile in startwm.sh

/etc/xrdp/startwm.sh doesn't source $HOME/.profile, which results in $HOME/.local/bin not being in $PATH when a terminal is opened (most terminals execute non-login shells by default).

GDM does it in /etc/gdm3/Xsession, and I guess it's also implicitly done by startx too (since a console login is a login shell, so ~/.profile would be sourced, and $PATH would be inherited by terminals opened in the X server; I didn't test this but this would be logical), so I think it's safe.

I tried on my PC by directly modifying /etc/xrdp/startwm.sh and this worked as intended, with no visible side-effects.

Thanks !

Merge request reports

Loading