How to set environment variables for X session? [Was Re: Any idea why starting evolution...]
Yves-Alexis Perez
corsac at debian.org
Sun Oct 24 18:53:55 CEST 2010
On dim., 2010-10-24 at 16:28 +0100, Chris G wrote:
> I've played some more, .xsessionrc *is* executed but environment
> variables
> set in .xsessionrc don't get out to the X session. Presumably
> .xsessionrc must be being run in a child process somewhere on the way
> in
> and thus variables set there are lost. I tried simply the following
> in
> my .xsessionrc :-
>
> echo ".xsessionrc starting" >/home/chris/tmp/xsession.log
> export MYENVVAR="ABCDEFG"
> echo ".xsessionrc ending" >>/home/chris/tmp/xsession.log
>
> and I got the messages in /home/chris/tmp/xsession.log but MYENVVAR
> wasn't set.
It does work fine here. Check something isn't cleaning up the
environment you're checking from.
Cheers,
--
Yves-Alexis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20101024/81be9fcf/attachment.pgp>
More information about the Xfce
mailing list