By lesmana


2010-10-10 17:04:08 8 Comments

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?

1 comments

@fschmitt 2010-10-10 21:13:48

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.

@Sandy 2010-10-11 00:31:57

Correct. You'll need to log out and back in, or launch every app from a terminal with an updated environment.

Related Questions

Sponsored Content

1 Answered Questions

How are environment variables defined in a Gnome terminal session?

2 Answered Questions

1 Answered Questions

[SOLVED] Kicked out of Gnome desktop intermitently

  • 2017-08-01 22:38:39
  • Gilles
  • 31 View
  • 0 Score
  • 1 Answer
  • Tags:   debian gnome

1 Answered Questions

[SOLVED] Why GNOME Display Manager always read .profile?

5 Answered Questions

[SOLVED] How to change title in gnome-terminal profile

  • 2011-03-19 07:30:06
  • user5881
  • 5964 View
  • 4 Score
  • 5 Answer
  • Tags:   gnome terminal

1 Answered Questions

[SOLVED] How to change GNOME default screen rotation

1 Answered Questions

[SOLVED] Upgraded to Gnome 3.4 on Debian, can't login to my main user?

  • 2012-07-30 04:13:12
  • meder omuraliev
  • 1749 View
  • 3 Score
  • 1 Answer
  • Tags:   debian gnome

3 Answered Questions

[SOLVED] How to resume a gnome session?

  • 2010-11-10 15:26:54
  • Andrew Redd
  • 1421 View
  • 4 Score
  • 3 Answer
  • Tags:   gnome login x11 gdm

1 Answered Questions

[SOLVED] How to align applets on Gnome panel

  • 2010-10-10 12:52:22
  • sheerun
  • 1165 View
  • 1 Score
  • 1 Answer
  • Tags:   ubuntu gnome

Sponsored Content