Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to reload variables from /etc/environment without re-logging in?

source /etc/environment in bash works for program run through terminal, but running programs through shortcuts at GUI does not work.

share|improve this question
up vote 8 down vote accepted

You cannot change the environment of a different process, as gnome-session, you can only change the environment of the current process and subsequent generated childs.

So, you are restricted to launch every process from the terminal where you sourced the new environment, to benefit from modifications.

share|improve this answer

Your Answer


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.