Blob Blame History Raw
diff -Nur audacious-plugins-3.4-alpha1-orig/src/gnomeshortcuts/gnomeshortcuts.c audacious-plugins-3.4-alpha1/src/gnomeshortcuts/gnomeshortcuts.c
--- audacious-plugins-3.4-alpha1-orig/src/gnomeshortcuts/gnomeshortcuts.c	2013-02-04 01:16:51.000000000 +0100
+++ audacious-plugins-3.4-alpha1/src/gnomeshortcuts/gnomeshortcuts.c	2013-02-14 21:26:25.000000000 +0100
@@ -47,6 +47,7 @@
 AUD_GENERAL_PLUGIN
 (
     .name = N_("Gnome Shortcuts"),
+    .enabled_by_default = TRUE,
     .domain = PACKAGE,
     .about_text = about,
     .init = init,
@@ -248,6 +249,14 @@
     if ((bus == NULL) || error) {
         g_warning ("Error connecting to DBus: %s", error->message);
     } else {
+        if ( !dbus_bus_name_has_owner(dbus_g_connection_get_connection(bus),
+                                      "org.gnome.SettingsDaemon", &error) ) {
+            if (error) {
+                g_warning(error->message);
+                g_error_free(error);
+            }
+            return;
+        }
         media_player_keys_proxy = dbus_g_proxy_new_for_name (bus,
          "org.gnome.SettingsDaemon",
          "/org/gnome/SettingsDaemon/MediaKeys",