From: Christian Dywan Date: Mon, 27 Apr 2009 15:46:04 +0000 (+0200) Subject: Fail silently on xprop errors when determining the environment X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10426983b0c63c9c2688253c73592e998129767b;p=midori Fail silently on xprop errors when determining the environment --- diff --git a/midori/sokoke.c b/midori/sokoke.c index 4802abec..bb421d80 100644 --- a/midori/sokoke.c +++ b/midori/sokoke.c @@ -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