proper place to set environment variables?

killermoehre killermoehre at
Tue May 13 18:18:19 CEST 2014

Am 12.05.2014 20:09, schrieb John Gabriele:
> Hi,
> I'm running as my desktop a stock Debian "Testing" (which is currently
> aliased to "jessie") system with Xfce 4.10, and log in graphically via
> LightDM.
> Where is the proper location to set environment variables? That is, I
> tried doing so in ~/.profile, but that file does not appear to be
> sourced when logging into the desktop (I think it may when logging in
> via text console though).
> Thanks!

For global variables use /etc/environment, for local variables use
~/.pam_environment. See »grep -R env /etc/pam.d/« for this.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the Xfce mailing list