summaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2014-08-09 19:39:14 +0000
committeralberth <alberth@openttd.org>2014-08-09 19:39:14 +0000
commit35f671229b12875a90ca1d5bca9916ed8153164e (patch)
tree6d515aace64494aa7ad56904d302e0218d65eeab /src/os
parentbe4bbf7dd989e5fc00e9a1129cff73f866c82eb1 (diff)
downloadopenttd-35f671229b12875a90ca1d5bca9916ed8153164e.tar.xz
(svn r26724) -Fix[FS#6077] Use the normal search path to look for xdg-open at Unix (kernigh2)
Diffstat (limited to 'src/os')
-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);
}