[gnome-control-center/gnome-3-2] color: Fix spawning of gcm-viewer
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-2] color: Fix spawning of gcm-viewer
- Date: Wed, 14 Sep 2011 03:58:48 +0000 (UTC)
commit 93efb9e8814cd681d89bc534409b32b559e87b3e
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Sep 13 23:55:16 2011 -0400
color: Fix spawning of gcm-viewer
argv arrays passed to g_spawn need to be NULL-terminated.
panels/color/cc-color-panel.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index 47f1429..f47c6dc 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -573,6 +573,7 @@ gcm_prefs_profile_view_cb (GtkWidget *widget, CcColorPanel *prefs)
g_ptr_array_add (argv, g_strdup (cd_profile_get_id (profile)));
g_ptr_array_add (argv, g_strdup ("--parent-window"));
g_ptr_array_add (argv, g_strdup_printf ("%i", xid));
+ g_ptr_array_add (argv, NULL);
ret = g_spawn_async (NULL, (gchar**) argv->pdata, NULL, 0,
NULL, NULL, NULL, &error);
if (!ret)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]