Added support for running software in a terminal from run mode

This commit is contained in:
Scoopta committed 2019-09-26 23:24:48 -07:00
1 parent 734dd6d6b6
commit dcdca16a38
4 files changed
+48 -5

No files matched your search

+3
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);