5

Possible Duplicate:
how do i tell gnome to reread my ~/.profile
How to change environment variables without re-logging to UI?

I'm trying to reload my ~/.profile without login out.

I can use source to reload it in bash for example, but I haven't found out how to reload it for the whole desktop.

When I launch applications from menus, they aren't aware of the changes in ~/.profile. Those changes are exclusively export commands.

How can I reload it for the whole desktop?

Eric
  • 341

1 Answers1

1

The ~/.profile is read by few processes, among them shells and desktop sessions. Everything else will simply inherit from its parent. So if you start your application from your desktop session, then restarting the desktop session is the only way. So logging out and back in appears to be the most sensible course of action.

There might be cases where the session is started from some script, and you could alter that script in such a way that it provides a mechanism to start a new session if the previous one exits, if some condition is satisfied. That would perhaps allow you to avoid giving your credentials once more. But this mechanism would be very hackish, and would have to be in place before you start the session.

MvG
  • 4,411