Re: change an environment variable in a running gnome session



Federico Mena Quintero wrote:
> On Wed, 2005-07-27 at 12:18 -0300, Fabio Rafael da Rosa wrote:
> Short answer:  You can't.  Unix doesn't have a way to propagate changes
> in environment variables.
> 
> Long answer: what exactly are you trying to do?  There may be a way
> within GNOME to do it.

We run into the same problem with seahorse and running an agent for GPG.

It needs an environment variable set in the distribution but short of
getting distros to set it on login, or asking users to go muck with
their init scripts, there's really no way to set it.

DBUS solves this by setting the environment variables and then having it
launch the session. However this really only works for one app per
desktop, and again requires that distros get in on the environment
variable action.

Cheers,
Nate




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]