GNOME Bugzilla – Bug 769094
gnome-session --version pushes environment to dbus-daemon
Last modified: 2021-06-14 21:01:56 UTC
gnome-session 3.20.2 pushes its environment to DBus no matter the arguments it's called with, including --version and --help. Besides unintentional use by the user, there are apparently scripts (such as "screenfetch") which call "gnome-session --version" with LANG=C and cause havoc this way, see [1] and [2]. [1]: https://bugs.archlinux.org/task/50069 [2]: https://bugs.archlinux.org/task/50106 (Even then, seems that --version was broken at some point, see bug 768743.) Instead of using dbus-update-activation-environment from the wrapper script, IMO gnome-session-binary should call org.freedesktop.DBus.UpdateActivationEnvironment itself, if and only if it is actually acting as a session leader.
eek. So i have an old branch that gets us most of the way there here: https://git.gnome.org/browse/gnome-session/commit/?h=wip/halfline/env-to-systemd&id=415230016aa7e038a48994b5c0248de7569af23f it's probably bit rotted a little, will look into it later.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version of gnome-session, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/gnome-session/-/issues/ Thank you for your understanding and your help.
Was this ever fixed?
Yes, as part of bug 736660.