How to set environment variables for X session? [Was Re: Any idea why starting evolution...]

Yves-Alexis Perez corsac at debian.org
Mon Oct 25 20:34:16 CEST 2010


On lun., 2010-10-25 at 11:37 +0100, Chris G wrote:
> I've played some further and I now understand (partly) what was
> confusing me:-
> 
>     .xprofile gets run *before* .xsessionrc, so setting variables in
>     .xsessionrc doesn't show up in anything that's been run from .xprofile.

Exact (I have to admit I didn't even know .xprofile, which basically has
the same purpose, though xsessionrc is the last thing sourced before
running the session, while xprofile is sourced quite early). Oh, and it
seems to be sourced only from GDM.
> 
>     As I start up all my terminal windows from .xprofile I wasn't seeing
>     settings I was making in .xsessionrc.
> 
>     I still don't understand why the eval $(gnome-keyring-daemon --start)
>     plus exports wasn't working properly when I did it in .xprofile.  It
>     works no better in .xsessionrc but it does work when I put it in
>     .profile.  Maybe it's something to do with what shell is used to run
>     each of these.

Maybe because in both cases it's sourced and not executed. Not sure if
makes a difference, but it's worth a check.
> 
>     My original problem of evolution being slow to start seems to be
>     related to DBUS_SESSION_BUS_ADDRESS being set, when it's set
>     evolution tries (and fails) to get something from DBUS whereas when
>     it's not set evolution starts up without problems.

Well, I guess that's because it's set to a “wrong” address. Evolution
tries to contact dbus and timeouts.

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/20101025/b38b3fa9/attachment.pgp>


More information about the Xfce mailing list