From 10426983b0c63c9c2688253c73592e998129767b Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 27 Apr 2009 17:46:04 +0200 Subject: [PATCH] Fail silently on xprop errors when determining the environment --- midori/sokoke.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5