summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-29 03:53:57 +0000
committerDana Jansens <danakj@orodu.net>2007-05-29 03:53:57 +0000
commit7b14d44b39d22da2a581124cd3d5584aec6a9617 (patch)
tree09c72f94879d31b377327bb810a3dc7b9328d4a4 /openbox
parent1188d9b0f6b806887a4686e985beb3f9aa325212 (diff)
g_spawn_async wants a char**, not const
Diffstat (limited to 'openbox')
-rw-r--r--openbox/screen.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/openbox/screen.c b/openbox/screen.c
index 80e7acb8..a265df0a 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -311,13 +311,21 @@ gboolean screen_annex()
static void screen_tell_ksplash()
{
XEvent e;
- const char *args[] = { "dcop", "ksplash", "ksplash",
- "upAndRunning(QString)", "wm started", NULL };
+ char **argv;
+
+ argv = g_new(gchar*, 6);
+ argv[0] = g_strdup("dcop");
+ argv[1] = g_strdup("ksplash");
+ argv[2] = g_strdup("ksplash");
+ argv[3] = g_strdup("upAndRunning(QString)");
+ argv[4] = g_strdup("wm started");
+ argv[5] = NULL;
/* tell ksplash through the dcop server command line interface */
- g_spawn_async(NULL, args, NULL,
+ g_spawn_async(NULL, argv, NULL,
G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD,
NULL, NULL, NULL, NULL);
+ g_strfreev(argv);
/* i'm not sure why we do this, kwin does it, but ksplash doesn't seem to
hear it anyways. perhaps it is for old ksplash. or new ksplash. or