Register own name
authorEnrico Zini <enrico@enricozini.org>
Mon, 17 Aug 2009 16:25:53 +0000 (17:25 +0100)
committerEnrico Zini <enrico@enricozini.org>
Mon, 17 Aug 2009 16:25:53 +0000 (17:25 +0100)
src/registry.vala

index 83006cb7a7249ec5723cf9d6685dcb1694c2d08e..1818b3094aeb93b26f382365601406c51c698da4 100644 (file)
@@ -149,14 +149,14 @@ public class Registry : Object, Resource
 
         bus_name = DBus.bus_get_unique_name(sbus.get_connection());
         zavai.log.info("My bus name: " + bus_name);
-/*
+
 stderr.printf("ZA1\n");
         dynamic DBus.Object tmp_dbus = sbus.get_object(
             "org.freedesktop.DBus",
             "/org/freedesktop/DBus",
             "org.freedesktop.DBus");
 stderr.printf("ZA2\n");
-        bus_name = "org.freedesktop.zavai";
+        bus_name = "org.enricozini.zavai";
         uint res = tmp_dbus.RequestName(bus_name, (uint)DBus.NameFlag.DO_NOT_QUEUE);
         stderr.printf("RN: %u\n", res);
         switch (res)
@@ -175,7 +175,6 @@ stderr.printf("ZA2\n");
                 break;
         }
 stderr.printf("ZA3\n");
-        */
        }
 
        public void shutdown()