I know about /etc/profile and /etc/environment, but I would like to set a global environmental variable after boot and login. By global, I mean an environment variable that can be accessed by any program (running under the current user).
Basically at any given point, say 10 minutes after boot, I would like to be able to run a script that would set some global environment variables. Is this possible?
I am having some trouble with gpg-agent in Ubuntu 14.04. Programs use environmental variables to connect to the gpg-agent process. My trouble is with multiple instances of gpg-agent running (only one of which has ssh-support enabled). I would like to be able to kill all existing instances of gpg-agent and start a new one with ssh-support. However, for other programs to be able to access the new instance, I need the environmental variables to be made global. Doing it during startup hasn't worked for me since the other gpg-agent seems to start after mine, replacing the environmental variables.
gpg-agentis not configured properly, and you think that the solution is to set an environment variable visible to all processes.