mpris: Use less scary warning
authorJens Georg <jensg@openismus.com>
Tue, 18 Dec 2012 21:49:41 +0000 (22:49 +0100)
committerJens Georg <jensg@openismus.com>
Tue, 18 Dec 2012 22:00:57 +0000 (23:00 +0100)
If DBus is not available, just say we're deactivating the plug-in instead of
showing that scary critical.

src/plugins/mpris/rygel-mpris-plugin-factory.vala

index ea302db..d996d2c 100644 (file)
@@ -39,8 +39,8 @@ public void module_init (PluginLoader loader) {
     try {
         plugin_factory = new MPRIS.PluginFactory (loader);
     } catch (IOError error) {
-        critical ("Failed to fetch list of MPRIS services: %s\n",
-                  error.message);
+        message (_("Module '%s' could not connect to D-Bus session bus. "+
+                   "Ignoring…", MPRIS.Plugin.MODULE_NAME));
     }
 }