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 392780 - Pass DBUS_SESSION_BUS_ADDRESS into hack environment
Pass DBUS_SESSION_BUS_ADDRESS into hack environment
Status: RESOLVED FIXED
Product: gnome-screensaver
Classification: Deprecated
Component: general
2.17.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-screensaver maintainers
gnome-screensaver maintainers
Depends on:
Blocks:
 
 
Reported: 2007-01-04 16:04 UTC by Ed Catmur
Modified: 2007-04-09 21:21 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
pass-dbus-session-bus-address.patch (384 bytes, patch)
2007-01-04 16:09 UTC, Ed Catmur
none Details | Review

Description Ed Catmur 2007-01-04 16:04:58 UTC
From http://bugzilla.gnome.org/show_bug.cgi?id=348323#c14 (bug 348323):

Unhandled Exception: System.Exception: Unable to open the session message bus.
---> System.ArgumentNullException: Argument cannot be null.
Parameter name: address
  at NDesk.DBus.Bus.Open (System.String address) [0x00000]
  at NDesk.DBus.Bus.get_Session () [0x00000] --- End of inner exception stack
trace ---

  at NDesk.DBus.Bus.get_Session () [0x00000]
  at NDesk.DBus.BusG.Init () [0x00000]
  at FSpot.Driver.Main (System.String[] args) [0x00000]

(with the f-spot screensaver).

DBUS_SESSION_BUS_ADDRESS needs to be added to allowed_env_vars in get_env_vars() in gs-job.c.
Comment 1 Ed Catmur 2007-01-04 16:09:57 UTC
Created attachment 79389 [details] [review]
pass-dbus-session-bus-address.patch

Suggested patch.
Comment 2 William Jon McCann 2007-01-04 16:12:15 UTC
Bummer.  I added that to the list in gs-window-x11 a few months ago but not gs-job.
Comment 3 Fabian Kneissl 2007-01-04 16:52:06 UTC
Thank you for fixing! Just works.
Comment 4 William Jon McCann 2007-01-05 16:46:57 UTC
Ok assuming I got the svn stuff right this should be fixed in 2-16 and head.  Thanks.