session bus -> system bus (hostnamed)
authorkremlin <ian@kremlin.cc>
Fri, 30 May 2014 07:54:49 +0000 (02:54 -0500)
committerkremlin <ian@kremlin.cc>
Fri, 30 May 2014 07:54:49 +0000 (02:54 -0500)
src/modules/hostnamed/hostnamed.c

index e01742c67173a1c803c1eb5b0de5e9d07b1b1be6..2897882ed85c6a967c65a5b247d2c131c323c396 100644 (file)
@@ -130,7 +130,7 @@ void hostnamed_init() {
        guint bus_descriptor;
        GError *err = NULL;
        
-       bus_descriptor = g_bus_own_name(G_BUS_TYPE_SESSION,
+       bus_descriptor = g_bus_own_name(G_BUS_TYPE_SYSTEM,
                                        (gchar *)"org.freedesktop.hostname1",
                                                    G_BUS_NAME_OWNER_FLAGS_NONE,
                                                    on_bus_acquired,