commit b7eda3555976c8483313172dd476711c2709bba2
Author: Raniconduh <clagv.randomgames@gmail.com>
Date: Thu Oct 14 11:44:57 2021 +0000
diff --git a/src/commands.c b/src/commands.c
index a53eab1..5a98c6a 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -26 +27 @@
#include <unistd.h>
#include <string.h>
#include <stdio.h>
+#include <sys/wait.h>
#include "dir.h"
#include "commands.h"
@@ -156 +167 @@ void ext_open(char * file) {
execvp("xdg-open", (char*[3]){"xdg-open", f, NULL});
exit(0);
}
+ wait(NULL);
free(f);
}