From: Thomas Debesse Date: Tue, 11 Jul 2017 03:36:00 +0000 (+0200) Subject: use xdg-open to open url on Linux, fix #87 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f22aa5e5da46b8200629d79da5490131885a6f28;p=xonotic%2Fnetradiant.git use xdg-open to open url on Linux, fix #87 --- diff --git a/radiant/url.cpp b/radiant/url.cpp index e5abc077..b86702e7 100644 --- a/radiant/url.cpp +++ b/radiant/url.cpp @@ -35,10 +35,9 @@ bool open_url( const char* url ){ #if defined( __linux__ ) || defined( __FreeBSD__ ) #include bool open_url( const char* url ){ - // \todo FIXME: the way we open URLs on *nix should be improved. A script is good (see how I do on RTCW) char command[2 * PATH_MAX]; snprintf( command, sizeof( command ), - "firefox -remote \"openURL(%s,new-window)\" || firefox \"%s\" &", url, url ); + "xdg-open \"%s\" &", url, url ); return system( command ) == 0; } #endif