forked from mirrors/kolyah35-minecraft-pe-0.6.1
Fix: linux open links
This commit is contained in:
parent
04f13ab4a7
commit
da1906f94b
1 changed files with 3 additions and 0 deletions
|
|
@ -130,6 +130,9 @@ public:
|
|||
virtual void openURL(const std::string& url) {
|
||||
#ifdef _WIN32
|
||||
ShellExecuteA(NULL, "open", url.c_str(), NULL, NULL, SW_SHOWNORMAL);
|
||||
#elif __linux__
|
||||
std::string command = "xdg-open " + url;
|
||||
system(command.c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue