projects
/
xonotic
/
netradiant.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
586f4c5
)
use xdg-open to open url on Linux, fix #87
45/head
author
Thomas Debesse <dev@illwieckz.net>
Tue, 11 Jul 2017 03:36:00 +0000
(
05:36
+0200)
committer
Thomas Debesse <dev@illwieckz.net>
Tue, 11 Jul 2017 03:36:00 +0000
(
05:36
+0200)
radiant/url.cpp
patch
|
blob
|
history
diff --git
a/radiant/url.cpp
b/radiant/url.cpp
index e5abc077f5b9424e2ddbb9afb66a368d410993b8..b86702e7727cc2996afd648e3b8debe691f0fea8 100644
(file)
--- a/
radiant/url.cpp
+++ b/
radiant/url.cpp
@@
-35,10
+35,9
@@
bool open_url( const char* url ){
#if defined( __linux__ ) || defined( __FreeBSD__ )
#include <stdlib.h>
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