0

I have Ubuntu 10.04. I want to define some environment variables that will be available anywhere, anytime, including from Eclipse. Where is the best place to put them? ~/.bashrc? ~/.profile? /etc/environment?

Why are there so many places to define settings?

3
  • What desktop environment are you using? What window manager?
    – Keith
    Aug 28, 2011 at 11:39
  • I use gnome desktop. How can I know what window manager I use? Sep 4, 2011 at 6:32
  • @Erel: If you're using a full DE such as GNOME or KDE, the window manager is not important. (GNOME uses either Metacity, Compiz, or Mutter.) It only makes a difference when the WM is being used standalone. Dec 15, 2011 at 14:04

1 Answer 1

0

~/.profile might be the best place – it is read for graphical logins (GDM), console logins, and even SSH. (The latter two only if neither ~/.bash_profile nor ~/.bash_login exists, though... but GDM always reads it.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .