last-exit builds without dbus-glib-sharp, however it fails to run with the
following error message:
Unhandled Exception: System.Exception: Unable to open the system message bus.
---> System.NullReferenceException: Object reference not set to an instance of
an object
at NDesk.DBus.Signature.TypeToDType (System.Type type) [0x00000]
at NDesk.DBus.Signature.TypeToDType (System.Type type) [0x00000]
at NDesk.DBus.MessageWriter.Write (System.Type type, System.Object val)
[0x00000]
at NDesk.DBus.MessageWriter.WriteStruct (System.Type type, System.Object val)
[0x00000]
at NDesk.DBus.Message.WriteHeader () [0x00000]
at NDesk.DBus.Connection.Send (NDesk.DBus.Message msg) [0x00000]
at NDesk.DBus.Connection.SendWithReply (NDesk.DBus.Message msg) [0x00000]
at NDesk.DBus.Connection.SendWithReplyAndBlock (NDesk.DBus.Message msg)
[0x00000]
at NDesk.DBus.BusObject.Invoke (System.Reflection.MethodBase methodBase,
System.String methodName, System.Object[] inArgs, System.Object[]& outArgs,
System.Object& retVal, System.Exception& exception) [0x00000]
at NDesk.DBus.DProxy.Invoke (IMessage message) [0x00000]
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke
(System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg, System.Exception&
exc, System.Object[]& out_args) [0x00000] --- End of inner exception stack
trace ---
at NDesk.DBus.Bus.get_System () [0x00000]
at NDesk.DBus.BusG.Init () [0x00000]
at LastExit.Driver.Main (System.String[] args) [0x00000]
When built with dbus-glib-sharp already merged, last-exit works properly.