I'm using gdm and gnome, but I would like to be able to run a shell
script as part of session startup, in order to
a) Set environment variables etc.
b) Start a lot of programs that I don't want to have to manually
configure gnome to start. I want these programs whether or not
I'm in gnome.
Currently, .xsessionrc is started at step 40 of Xsession.d. This allows
for use A, but not really for use B.
In particular, I had my .xsessionrc starting a terminal, and just wasted
a thourougly embarrassing amount of time trying to figure out why,
despite gpg-agent being started, GPG_AGENT_INFO was not set. (Not
thinking to start a second terminal and try it there.)
Some solution that would let me accomplish B would be appreciated.
At the moment, the only way to do it seems to be to make one's window
manager into a wrapper script.