Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm upgrading a bunch of installations of 10.04 to 12.04. In 10.04 I used to define system wide env. variables in /etc/environment.

It works, but not for $PATH that seems to be overwirtten.

I don't want to define it in /etc/bash.bashrc nor /etc/profile because I want all desktop apps can see its value properly, not only the terminal.

Anybody knows where could $PATH get overwritten? If I log in via tty the PATH has the value I indicated in /etc/environment but if I log into X the PATH has the value /usr/local/bin:/usr/bin:/bin:/usr/games

Any help will be appreciated.

share|improve this question
    
Recently I had the following problem with the X. Including some header files of the X library, my project stopped working in a very mysterious way. Turns out someone, tens of years ago, wrote in the header #define Status int. My point is: this could be a bug. –  Vorac Aug 2 '12 at 8:01
add comment

1 Answer

Please check /etc/X11/xinit/xinitrc, /etc/X11/Xsession and the files in /etc/skel.

I assume that you have ruled out any user specific configuration files by creating a brand new user and logging in as that user.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.