mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r26724) -Fix[FS#6077] Use the normal search path to look for xdg-open at Unix (kernigh2)
This commit is contained in:
parent
633ac888f6
commit
fa4996feef
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user