mirror of
https://github.com/glest/glest-source.git
synced 2025-08-04 15:37:29 +02:00
Now uses xdg-open
This commit is contained in:
@@ -288,11 +288,14 @@ namespace Game {
|
|||||||
if (button == 0) {
|
if (button == 0) {
|
||||||
string update = Config::getInstance().getString("UpdateDownloadURL", "");
|
string update = Config::getInstance().getString("UpdateDownloadURL", "");
|
||||||
if (update != "") {
|
if (update != "") {
|
||||||
|
try {
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
ShellExecuteA(0, 0, update.c_str(), 0, 0, SW_SHOW);
|
ShellExecuteA(0, 0, update.c_str(), 0, 0, SW_SHOW);
|
||||||
#else
|
#else
|
||||||
system(("open " + update).c_str());
|
printf("xdg-open call resulted in: %d\n", system(("xdg-open " + update).c_str());
|
||||||
#endif
|
#endif
|
||||||
|
} catch (...) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/*startFTPClientIfRequired();
|
/*startFTPClientIfRequired();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user