After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 769094 - gnome-session --version pushes environment to dbus-daemon
gnome-session --version pushes environment to dbus-daemon
Status: RESOLVED OBSOLETE
Product: gnome-session
Classification: Core
Component: gnome-session
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: Session Maintainers
Session Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-07-22 18:27 UTC by Jan Alexander Steffens (heftig)
Modified: 2021-06-14 21:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jan Alexander Steffens (heftig) 2016-07-22 18:27:57 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.
Comment 1 Ray Strode [halfline] 2016-07-22 18:47:04 UTC
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.
Comment 2 André Klapper 2021-06-14 18:22:14 UTC
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.
Comment 3 Michael Catanzaro 2021-06-14 19:48:36 UTC
Was this ever fixed?
Comment 4 Jan Alexander Steffens (heftig) 2021-06-14 21:01:56 UTC
Yes, as part of bug 736660.