summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/os/unix/unix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/unix/unix.cpp b/src/os/unix/unix.cpp
index ebae5c244..59d40cc89 100644
--- a/src/os/unix/unix.cpp
+++ b/src/os/unix/unix.cpp
@@ -368,10 +368,10 @@ void OSOpenBrowser(const char *url)
if (child_pid != 0) return;
const char *args[3];
- args[0] = "/usr/bin/xdg-open";
+ args[0] = "xdg-open";
args[1] = url;
args[2] = NULL;
- execv(args[0], const_cast<char * const *>(args));
+ execvp(args[0], const_cast<char * const *>(args));
DEBUG(misc, 0, "Failed to open url: %s", url);
exit(0);
}