Gnome Settings Daemon my be leaking DESKTOP_AUTOSTART_ID
Submitted by Sebastian
I am wondering if there has been a regression that is causing this bug to appear again. I am using a shortcut to start gnome-terminal with CTRL+ALT+T, when I start the terminal via this hotkey then DESKTOP_AUTOSTART_ID is set. By querying the SessionManager I can see that it corresponds to org.gnome.SettingsDaemon.MediaKeys.desktop'.
When I start a gnome-terminal from the desktop shell, then the DESKTOP_AUTOSTART_ID is not set. However both processes end-up as children of the same gnome-terminal-server process, which also does not have DESKTOP_AUTOSTART_ID set in its environment file (e.g. in /proc/
So gnome-terminal windows started via hotkey by MediaKeys must somehow receive this environment variable. While gnome-terminal windows started from the desktop menu do not receive it.
This bug has originally been discussed in #697052.