From 35f671229b12875a90ca1d5bca9916ed8153164e Mon Sep 17 00:00:00 2001 From: alberth Date: Sat, 9 Aug 2014 19:39:14 +0000 Subject: (svn r26724) -Fix[FS#6077] Use the normal search path to look for xdg-open at Unix (kernigh2) --- src/os/unix/unix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/os/unix') 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(args)); + execvp(args[0], const_cast(args)); DEBUG(misc, 0, "Failed to open url: %s", url); exit(0); } -- cgit v1.2.3-54-g00ecf