]> spindle.queued.net Git - midori/commitdiff
Fail silently on xprop errors when determining the environment
authorChristian Dywan <christian@twotoasts.de>
Mon, 27 Apr 2009 15:46:04 +0000 (17:46 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 27 Apr 2009 15:46:04 +0000 (17:46 +0200)
midori/sokoke.c

index 4802abecef756884bc85522b0cc909caeca9d68e..bb421d80e6231581d7330b0ec8e2ebad5c0fe3c4 100644 (file)
@@ -423,8 +423,10 @@ sokoke_get_desktop (void)
         /* Are we running in Xfce? */
         gint result;
         gchar *out = NULL;
+        gchar *err = NULL;
         gboolean success = g_spawn_command_line_sync ("xprop -root _DT_SAVE_MODE",
-            &out, NULL, &result, NULL);
+            &out, &err, &result, NULL);
+        g_free (err);
         if (success && ! result && out != NULL && strstr (out, "xfce4") != NULL)
             desktop = SOKOKE_DESKTOP_XFCE;
         else