Check the return value for launching the startup command.
authorDana Jansens <danakj@orodu.net>
Sat, 15 Oct 2011 19:37:58 +0000 (15:37 -0400)
committerDana Jansens <danakj@orodu.net>
Sat, 15 Oct 2011 19:54:15 +0000 (15:54 -0400)
Copy/paste error?

openbox/openbox.c

index 832deb04ecbf49499a8b307710b63faba6ec49f7..8ffe11a3ff9522325a9d2794166043a7978833b6 100644 (file)
@@ -579,7 +579,7 @@ static void run_startup_cmd(void)
                        G_SPAWN_SEARCH_PATH |
                        G_SPAWN_DO_NOT_REAP_CHILD,
                        NULL, NULL, NULL, &e);
-    if (!g_shell_parse_argv(startup_cmd, NULL, &argv, &e)) {
+    if (!ok) {
         g_message("Error launching startup command: %s",
                   e->message);
         g_error_free(e);