Set environment variable for all of tmux shells when gnome-sessions gets restarted

view full story

http://unix.stackexchange.com – To solve this problem, I need to set the environment variable DBUS_SESSION_BUS_ADDRESS for all shells inside tmux every time I restart gnome without restarting tmux (this is often). How can I best solve this? I cannot cleanly change another processes' environment. I cannot send a command to every pane I could set the environment variable in my PROMPT_COMMAND. It means I need to press Enter before I can run gnome applications. It's ugly and overkill. I could set the environment variable by executing a command before every command, but that's a bit overkill. Is there another way to fix this (HowTos)