all repos — openbox @ 8758271498db8de722b5a5af04427b21e834bef3

openbox fork - make it a bit more like ryudo

restart and catch errors appropriately
Dana Jansens danakj@orodu.net
commit

8758271498db8de722b5a5af04427b21e834bef3

parent

26f66bc932be6313e1fb71d73e60ba5667276ac0

1 files changed, 8 insertions(+), 4 deletions(-)

jump to
M openbox/openbox.copenbox/openbox.c

@@ -176,16 +176,20 @@

XCloseDisplay(ob_display); if (ob_restart) { + ob_restart_path = ""; if (ob_restart_path != NULL) { int argcp; char **argvp; - GError *err; + GError *err = NULL; /* run other shit */ - if (g_shell_parse_argv(ob_restart_path, &argcp, &argvp, &err)) + if (g_shell_parse_argv(ob_restart_path, &argcp, &argvp, &err)) { execvp(argvp[0], argvp); - - g_strfreev(argvp); + g_strfreev(argvp); + } else { + g_warning("failed to execute '%s': %s", ob_restart_path, + err->message); + } } /* re-run me */