X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Factions%2Fexecute.c;h=380ffa008996936d4484d3d6bb15914cf861417c;hb=5fdb5cb7ddc18c1c00fa79472d2e199ab8570a06;hp=18daf78467f07bf33661d584b6b4de2a0bbe4f28;hpb=e61fd8874a8352fb5fa1c4b2ab84d29679fa7b0c;p=chaz%2Fopenbox diff --git a/openbox/actions/execute.c b/openbox/actions/execute.c index 18daf784..380ffa00 100644 --- a/openbox/actions/execute.c +++ b/openbox/actions/execute.c @@ -232,7 +232,7 @@ static gboolean run_func(ObActionsData *data, gpointer options) e = NULL; if (!g_shell_parse_argv(cmd, NULL, &argv, &e)) { - g_message(e->message, o->cmd); + g_message("%s", e->message); g_error_free(e); } else { @@ -254,13 +254,13 @@ static gboolean run_func(ObActionsData *data, gpointer options) G_SPAWN_DO_NOT_REAP_CHILD, NULL, NULL, NULL, &e); if (!ok) { - g_message(e->message, o->cmd); + g_message("%s", e->message); g_error_free(e); } if (o->sn) { if (!ok) sn_spawn_cancel(); - unsetenv("DESKTOP_STARTUP_ID"); + g_unsetenv("DESKTOP_STARTUP_ID"); } g_free(program);