mirror of https://github.com/OpenTTD/OpenTTD
(svn r26724) -Fix[FS#6077] Use the normal search path to look for xdg-open at Unix (kernigh2)
parent
be4bbf7dd9
commit
35f671229b
|
@ -368,10 +368,10 @@ void OSOpenBrowser(const char *url)
|
||||||
if (child_pid != 0) return;
|
if (child_pid != 0) return;
|
||||||
|
|
||||||
const char *args[3];
|
const char *args[3];
|
||||||
args[0] = "/usr/bin/xdg-open";
|
args[0] = "xdg-open";
|
||||||
args[1] = url;
|
args[1] = url;
|
||||||
args[2] = NULL;
|
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);
|
DEBUG(misc, 0, "Failed to open url: %s", url);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue