system() blocks, let's call sh -c ourselves...

This commit is contained in:
Kevin Lange 2014-05-26 13:46:55 -07:00
parent a576c84f28
commit e1a1c1058f

View File

@ -109,8 +109,12 @@ static sprite_t * icon_get(char * name) {
void launch_application(char * app) {
printf("Starting %s\n", app);
system(app);
if (!fork()) {
printf("Starting %s\n", app);
char * args[] = {"/bin/sh", "-c", app, NULL};
execvp(args[0], args);
exit(1);
}
}
char * next_run_activate = NULL;