(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 be4bbf7dd9
commit 35f671229b
1 changed files with 2 additions and 2 deletions

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