public static void Main(string[] args) { Application.Init (); try { DBus.Connection connection = DBus.Bus.GetSessionBus (); DBus.Service service = new DBus.Service (connection, NotificationDaemon.Service); NotificationDaemon ndaemon= new NotificationDaemon (); service.RegisterObject (ndaemon, NotificationDaemon.Path); Console.WriteLine ("Daemon active."); } catch (Exception e) { Console.WriteLine ("Daemon active.", e.Message); } Application.Run (); }
public static void Main(string[] args) { Application.Init(); try { DBus.Connection connection = DBus.Bus.GetSessionBus(); DBus.Service service = new DBus.Service(connection, NotificationDaemon.Service); NotificationDaemon ndaemon = new NotificationDaemon(); service.RegisterObject(ndaemon, NotificationDaemon.Path); Console.WriteLine("Daemon active."); } catch (Exception e) { Console.WriteLine("Daemon active.", e.Message); } Application.Run(); }