#595183 $HOME/.xsessionrc is started too early to be used to start programs

#595183#5
Date:
2010-09-01 19:31:26 UTC
From:
To:
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.

#595183#10
Date:
2010-09-02 22:25:42 UTC
From:
To:
Hello Joey,

Am 2010-09-01 15:31:26, schrieb Joey Hess:

I use the ~/.xsession file and it works with XDM, WDM, GDM and KDM.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack

#595183#15
Date:
2010-09-28 17:40:26 UTC
From:
To:
Michelle Konzack <linux4michelle@tamay-dogan.net> (03/09/2010):

Joey, does that suit your needs?

Mraw,
KiBi.

#595183#20
Date:
2010-09-28 19:32:17 UTC
From:
To:
Cyril Brulebois wrote:

.xsession is not used when gnome is the session manager.