mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
action: fix reconfigure
This commit is contained in:
parent
d5b9a65978
commit
1fae45b1f7
1 changed files with 1 additions and 8 deletions
|
|
@ -4,13 +4,6 @@
|
||||||
#include "common/spawn.h"
|
#include "common/spawn.h"
|
||||||
#include "labwc.h"
|
#include "labwc.h"
|
||||||
|
|
||||||
static void
|
|
||||||
reconfigure(void)
|
|
||||||
{
|
|
||||||
char *const args[] = { "killall", "-SIGHUP", "labwc", NULL };
|
|
||||||
execvp(args[0], args);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
action(struct server *server, const char *action, const char *command)
|
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 =
|
server->cycle_view =
|
||||||
desktop_next_view(server, server->cycle_view);
|
desktop_next_view(server, server->cycle_view);
|
||||||
} else if (!strcasecmp(action, "Reconfigure")) {
|
} else if (!strcasecmp(action, "Reconfigure")) {
|
||||||
reconfigure();
|
spawn_async_no_shell("killall -SIGHUP labwc");
|
||||||
} else if (!strcasecmp(action, "Debug")) {
|
} else if (!strcasecmp(action, "Debug")) {
|
||||||
dbg_show_views(server);
|
dbg_show_views(server);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue