X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fscreen.c;h=7b4ca7406066034c010b8c353c63642466d8dfe8;hb=b0aa29db6973d3a052980459c413c1c193bcc671;hp=f515e4ec2181b9a953e17bdae6db5749ec38c810;hpb=b30380700fed5636523bc67a24268c200431fdc4;p=chaz%2Fopenbox diff --git a/openbox/screen.c b/openbox/screen.c index f515e4ec..7b4ca740 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -311,13 +311,22 @@ gboolean screen_annex() static void screen_tell_ksplash() { XEvent e; - const char *args[] = { "dcop", "ksplash", "ksplash", - "upAndRunning(QString)", "wm started", NULL }; - - /* tell the dcop server through the command line interface */ - g_spawn_async(NULL, args, NULL, - G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD, + 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, argv, NULL, + G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD | + G_SPAWN_STDERR_TO_DEV_NULL | G_SPAWN_STDOUT_TO_DEV_NULL, 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