diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-29 13:01:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-29 21:35:02 +0300 |
commit | ae6627e0d13fa1fbf0b9f9226f3f257c3f12b9fd (patch) | |
tree | 3d71e76c2883d17419b946859bba10fb0d5b90b6 /src/utils/process.cpp | |
parent | bbe6513b10f79ff25d04cd268c5224c3e84cc6ea (diff) | |
download | manaplus-ae6627e0d13fa1fbf0b9f9226f3f257c3f12b9fd.tar.gz manaplus-ae6627e0d13fa1fbf0b9f9226f3f257c3f12b9fd.tar.bz2 manaplus-ae6627e0d13fa1fbf0b9f9226f3f257c3f12b9fd.tar.xz manaplus-ae6627e0d13fa1fbf0b9f9226f3f257c3f12b9fd.zip |
Fix paths for xsel and xdg-open on OpenBSD and FreeBSD.
Diffstat (limited to 'src/utils/process.cpp')
-rw-r--r-- | src/utils/process.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/process.cpp b/src/utils/process.cpp index bb7488e33..d05c6a11a 100644 --- a/src/utils/process.cpp +++ b/src/utils/process.cpp @@ -260,6 +260,12 @@ bool openBrowser(std::string url) { return execFile("/usr/bin/open", "/usr/bin/open", url, ""); } +#elif defined __OpenBSD__ || defined __FreeBSD__ || defined __DragonFly__ +bool openBrowser(std::string url) +{ + return execFile("/usr/local/bin/xdg-open", + "/usr/local/bin/xdg-open", url, ""); +} #elif defined __linux__ || defined __linux bool openBrowser(std::string url) { |