# HG changeset patch # User alberth # Date 2014-08-09 19:39:14 # Node ID b776a4be96265b67191f3cc16ea62fd28a709446 # Parent ef21383e536daa507381c9dbfa6a95be830c9760 (svn r26724) -Fix[FS#6077] Use the normal search path to look for xdg-open at Unix (kernigh2) diff --git a/src/os/unix/unix.cpp b/src/os/unix/unix.cpp --- 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); }