Login/init scripts not working
All I need to do is to set some environment variables, that are scoped for all applications of the session except for GDM and the gnome-shell itself. I figured that either /etc/gdm/PostLogin/Default
or /etc/gdm/PreSession/Default
should do the job for that.
However, I noticed after some tests that neither of these seem to be run, or at least they don't seem to have the intended effect.
Steps to reproduce:
- Edit
/etc/gdm/PostLogin/Default
: AddGDM_TEST_POSTLOGIN=1
- Edit
/etc/gdm/PreSession/Default
: AddGDM_TEST_PRESESSION=1
- Relog
- Open a shell,
echo $GDM_TEST_POSTLOGIN $GDM_TEST_PRESSION
- Should print "1 1", prints nothing