Is it possible to set an environment variable at runtime, affecting all the programs started from the DE after that point (Desktop Environment, in my case KDE4) (without rebooting)?
I know it it possible to set system-wide or user-wide environment variables in
/etc/environment, etc., but logging out and back in is required before they are read.
My aim is to store the current display resolution in 2 environment vars named
YRES and update them when I switch to the secondary display.