commit cf3aa0f8aac5b95c75886a0a64b038f6037485a5
Author: Raniconduh <clagv.randomgames@gmail.com>
Date: Mon Oct 10 22:31:07 2022 +0000
diff --git a/src/commands.c b/src/commands.c
index c58092e..8712ac3 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -297 +2911 @@ void ext_open(char * file) {
endwin();
pid_t pid = fork();
if (!pid) {
+#if defined(__APPLE__) || defined(__MACH__)
+ execvp("open", (char*[3]){"open", f, NULL});
+#else
execvp("xdg-open", (char*[3]){"xdg-open", f, NULL});
+#endif
exit(0);
}
wait(NULL);