(svn r26724) -Fix[FS#6077] Use the normal search path to look for xdg-open at Unix (kernigh2)

This commit is contained in:
alberth 2014-08-09 19:39:14 +00:00
parent 633ac888f6
commit fa4996feef

View File

@ -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);
}