diff --git a/evoke/EvokeService.cpp b/evoke/EvokeService.cpp index bbeb37f..45a38b8 100644 --- a/evoke/EvokeService.cpp +++ b/evoke/EvokeService.cpp @@ -247,7 +247,7 @@ int EvokeService::handle(const XEvent* ev) { if(get_string_property_value(_ede_spawn, buff, sizeof(buff))) { logfile->printf("Got _EVOKE_SPAWN with %s. Starting client...\n", buff); - int r = spawn_program(buff, false); + int r = spawn_program(buff); if(r != 0) fl_alert("Unable to start %s. Got code %i", buff, r); diff --git a/evoke/Spawn.cpp b/evoke/Spawn.cpp index bf5437b..e7ba246 100644 --- a/evoke/Spawn.cpp +++ b/evoke/Spawn.cpp @@ -21,7 +21,7 @@ extern char** environ; -int run_fork(const char* cmd, bool wait) { +int spawn_program(const char* cmd) { if(!cmd) return SPAWN_EMPTY; @@ -62,8 +62,3 @@ int run_fork(const char* cmd, bool wait) { return status_ret; } - - -int spawn_program(const char* cmd, bool wait) { - return run_fork(cmd, wait); -} diff --git a/evoke/Spawn.h b/evoke/Spawn.h index 679bc12..93fb6d5 100644 --- a/evoke/Spawn.h +++ b/evoke/Spawn.h @@ -28,6 +28,6 @@ #define SPAWN_PTY_FAILED 65529 // TODO #define SPAWN_USER_CANCELED 65528 // TODO -int spawn_program(const char* cmd, bool wait); +int spawn_program(const char* cmd); #endif diff --git a/evoke/Splash.cpp b/evoke/Splash.cpp index e4001b4..838305a 100644 --- a/evoke/Splash.cpp +++ b/evoke/Splash.cpp @@ -216,7 +216,7 @@ bool Splash::next_client(void) { redraw(); if(!dry_run) - spawn_program(cmd, false); + spawn_program(cmd); ++clist_it; ++counter; @@ -243,7 +243,7 @@ bool Splash::next_client(void) { redraw(); if(!dry_run) - spawn_program(cmd, false); + spawn_program(cmd); counter++; #endif @@ -272,7 +272,7 @@ bool Splash::next_client_nosplash(void) { printf("%s\n", buff); if(!dry_run) - spawn_program(cmd, false); + spawn_program(cmd); ++clist_it; ++counter; @@ -298,7 +298,7 @@ bool Splash::next_client_nosplash(void) { printf("%s\n", buff); if(!dry_run) - spawn_program(cmd, false); + spawn_program(cmd); counter++; #endif