15

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.

enzotib
  • 93,831
YOU
  • 255

1 Answers1

10

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.

enzotib
  • 93,831