]> git.mdlowis.com Git - proto/labwc.git/commitdiff
action: fix reconfigure
authorJohan Malm <jgm323@gmail.com>
Wed, 21 Oct 2020 19:30:59 +0000 (20:30 +0100)
committerJohan Malm <jgm323@gmail.com>
Wed, 21 Oct 2020 19:30:59 +0000 (20:30 +0100)
src/action.c

index 100fb9af4f7fd816222db325c3e68e0853762cc1..924ef791ee0a7a01d23706d60f4231d7e4fbd909 100644 (file)
@@ -4,13 +4,6 @@
 #include "common/spawn.h"
 #include "labwc.h"
 
-static void
-reconfigure(void)
-{
-       char *const args[] = { "killall", "-SIGHUP", "labwc", NULL };
-       execvp(args[0], args);
-}
-
 void
 action(struct server *server, const char *action, const char *command)
 {
@@ -24,7 +17,7 @@ action(struct server *server, const char *action, const char *command)
                server->cycle_view =
                        desktop_next_view(server, server->cycle_view);
        } else if (!strcasecmp(action, "Reconfigure")) {
-               reconfigure();
+               spawn_async_no_shell("killall -SIGHUP labwc");
        } else if (!strcasecmp(action, "Debug")) {
                dbg_show_views(server);
        } else {