Changeset - r21594:b776a4be9626
[Not reviewed]
master
0 1 0
alberth - 10 years ago 2014-08-09 19:39:14
alberth@openttd.org
(svn r26724) -Fix[FS#6077] Use the normal search path to look for xdg-open at Unix (kernigh2)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/os/unix/unix.cpp
Show inline comments
 
@@ -365,14 +365,14 @@ uint GetCPUCoreCount()
 
void OSOpenBrowser(const char *url)
 
{
 
	pid_t child_pid = fork();
 
	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);
 
}
 
#endif
0 comments (0 inline, 0 general)