haguichi won't launch without dbus-launch

Bug #1029099 reported by Andreas B. Wagner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Haguichi
Invalid
Undecided
Unassigned

Bug Description

If I start haguichi on archlinux from the command line with "haguichi" I get the errors below. I have tried older versions as well as the newest 1.16 and I get the same errors. If I launch haguichi from the cli with "dbus-launch haguichi" it works fine.

Regards, Andreas Wagner

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] in <filename unknown>:0
  at NDesk.DBus.Bus.get_Session () [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at NDesk.DBus.Bus.get_Session () [0x00000] in <filename unknown>:0
  at NDesk.DBus.BusG.Init () [0x00000] in <filename unknown>:0
  at Platform.Init () [0x00000] in <filename unknown>:0
  at Haguichi.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL 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] in <filename unknown>:0
  at NDesk.DBus.Bus.get_Session () [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at NDesk.DBus.Bus.get_Session () [0x00000] in <filename unknown>:0
  at NDesk.DBus.BusG.Init () [0x00000] in <filename unknown>:0
  at Platform.Init () [0x00000] in <filename unknown>:0
  at Haguichi.Main (System.String[] args) [0x00000] in <filename unknown>:0

Revision history for this message
Stephen Brandt (ztefn) wrote :

Haguichi depends on DBus. It should already be available before you start Haguichi. Or as the dbus-launch manual [1] states:
"The dbus-launch command is used to start a session bus instance of dbus-daemon from a shell script. It would normally be called from a user's login scripts."

I don't who's fault it is that dbus-daemon isn't launched on Arch at login, but I'm pretty sure it's not mine.

[1] http://dbus.freedesktop.org/doc/dbus-launch.1.html

Changed in haguichi:
status: New → Invalid
Revision history for this message
Stephen Brandt (ztefn) wrote :

Here's a bit of documentation in the Arch wiki: https://wiki.archlinux.org/index.php/D-Bus

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.