Added support for running software in a terminal from run mode

This commit is contained in:
Scoopta
2019-09-26 23:24:48 -07:00
parent 734dd6d6b6
commit dcdca16a38
4 changed files with 48 additions and 5 deletions

View File

@@ -63,6 +63,9 @@ void run_init() {
}
void run_exec(const gchar* cmd) {
if(wofi_run_in_term()) {
wofi_term_run(cmd);
}
execl(cmd, cmd, NULL);
fprintf(stderr, "%s cannot be executed\n", cmd);
exit(errno);