proper place to set environment variables?

Wes Gregg wes_catfish at yahoo.com
Thu May 15 00:40:14 CEST 2014


On 05/12/2014 08:26 PM, John Gabriele wrote:
> On Mon, May 12, 2014, at 11:34 AM, Chris Green wrote:
>> On Mon, May 12, 2014 at 11:09:40AM -0700, John Gabriele wrote:
>>> 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).
>>>
>> Things put into .profile *should* be there when you run the desktop.
>>
>> You need to export them though,
> I did export them, though it still fails. Did another quick test; in my
> ~/.profile, added:
>
>      export FOOBAR="hello"
>
> then logged out, logged in, and tried
>
>      echo $FOOBAR
>
> and get nothing. So, it doesn't look like ~/.profile is getting sourced.
>
> I then tried something else, which I found after more searching around:
> I tried creating a ~/.xsessionrc, then put this in it:
>
>      export PATH=$HOME/bin:$HOME/.cabal/bin:$PATH
>      export TERM=xterm-256color
>
> logout, login, and then found that `echo $PATH` shows the expected PATH
> (with ~/bin and ~/.cabal/bin in it), but `echo $TERM` returns just
> "xterm". (?!)
>
> -- John
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> https://mail.xfce.org/mailman/listinfo/xfce
> http://www.xfce.org
Could it be because you're spelling FUBAR incorrectly?



-- 
Find more about Weather in Parkersburg, WV 
<http://www.wunderground.com/cgi-bin/findweather/getForecast?query=zmw:26101.1.99999&bannertypeclick=wu_clean2day>
Click for weather forecast 
<http://www.wunderground.com/cgi-bin/findweather/getForecast?query=zmw:26101.1.99999&bannertypeclick=wu_clean2day>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.xfce.org/pipermail/xfce/attachments/20140514/f287bf55/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wxBanner
Type: image/gif
Size: 5349 bytes
Desc: not available
URL: <https://mail.xfce.org/pipermail/xfce/attachments/20140514/f287bf55/attachment.gif>


More information about the Xfce mailing list