Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

GNOME reads ~/.profile upon login. When I change something in .profile (for example LC_MESSAGES) I want gnome to reread the .profile file without logging out and back in. In bash I can tell bash to source .profile. How can I do that for the running GNOME session?

share|improve this question
up vote 14 down vote accepted

I think it is not possible. The relevant script is /etc/gdm/Xsession. There quite at the top you'll find

# First read /etc/profile and .profile 
test -f /etc/profile && . /etc/profile
test -f "$HOME/.profile" && . "$HOME/.profile"

and after that (and sourcing other scripts, loading X resources etc) the desktop environment is started, inheriting the values of .profile just loaded. As there is no way to change the environment of running processes (if the process has no special functionality to import changed environment, but this is nothing you commonly find), you seem to be out of luck.

share|improve this answer
Correct. You'll need to log out and back in, or launch every app from a terminal with an updated environment. – Sandy Oct 11 '10 at 0:31

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.