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.

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
add comment

1 Answer

up vote 5 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
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.