You are not logged in.
I put a few exports in ~/.profile, but when logging in to XFCE4 via slim, the exports aren't present (tested by echo'ing the variables in Bash). If I source it manually, it works, but they're there to establish proxy settings and is useless unless it's in the environment.
Last edited by synthead (2014-01-02 01:53:51)
Offline
DM (and DE's) have different and "helpful" ways of dealing with this. Xfce uses ~/.config/xfce4/xinitrc, apparently.
You could also try putting your proxy settings in ~/.pam_environment and see if either, or both, respect that.
Offline
The usual way DMs and DEs deal with user variables is by using ~/.xprofile
What I do is to link (*not* symlink!) ~/.profile to ~/.xprofile if my login shell is bash or ~/.zprofile to ~/.xprofile if using zsh. Notice that I do not modify ~/.profile because it sources .bashrc. I do all modifications in .bashrc so that they are sourced by virtual terminal sessions. The same goes for .zprofile (a modified copy of .profile) and .zshrc.
I break things and put them back together for fun and sometimes profit, because it is the only way to learn.
Offline
So that means all of your env variables are sourced for every term you open?
Offline
@jasonwryan That's correct. It may sound crazy from a memory consumption point of view but it depends on use case. I keep my environment configuration to a minimum (something I learned the hard way when running out of stack space in Ultrix's sh and csh). The only thing consuming memory in my shell processes is the file completion code, that I want there anyway, but that could be turned off guarding it with a test againt $- in /etc/bash.bashrc or the equivalent in my local .zshrc so that it doesn't load in non-interactive shells.
If I understood your question wrongly, the answer would be "yes, the whole graphical session inherits the environment in my shell files". I guess. :-)
Last edited by vorbote (2013-12-29 18:41:25)
I break things and put them back together for fun and sometimes profit, because it is the only way to learn.
Offline
Thanks for clarifying. I haven't used a DE for a long time so I wasn't sure. Is there no more elegant way to manage that? It sounds sort of broken by default™
Offline
Broken since times immemorial. Brings me memories of trying to setup my twm sessions back in college. All well erased with hard grain alcohol. :-)
I break things and put them back together for fun and sometimes profit, because it is the only way to learn.
Offline
So, a net win then?
Offline
Absolutely. ;-P
I break things and put them back together for fun and sometimes profit, because it is the only way to learn.
Offline
I didn't want to maintain XFCE4's xinitrc junk in my own file, so I ended up just adding "source ~/.profile" in ~/.xinitrc.
Offline