Skip to content

Commit

Permalink
* Fixed URL open on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
addictgamer committed Aug 3, 2020
1 parent 719618c commit 213b7e1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions ci/build-linux_fmod_steam-editor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,5 @@ make -j
RESULT=$?
if [ $RESULT -ne 0 ]; then
echo "Compilation failed. Aborting."
exit $RESULT
fi
1 change: 1 addition & 0 deletions ci/build-linux_fmod_steam.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,5 @@ make -j
RESULT=$?
if [ $RESULT -ne 0 ]; then
echo "Compilation failed. Aborting."
exit $RESULT
fi
1 change: 1 addition & 0 deletions ci/build-linux_fmod_steam_eos-barony.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ make -j
RESULT=$?
if [ $RESULT -ne 0 ]; then
echo "Compilation failed. Aborting."
exit $RESULT
fi
6 changes: 3 additions & 3 deletions src/interface/ui_general.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ void openURLTryWithOverlay(std::string url, bool forceSystemBrowser)
#ifdef APPLE
//TODO: Mac equivalent.
system(std::string("open " + url).c_str());
#endif // WINDOWS
#endif // APPLE
#ifdef LINUX
//TODO: Linux equivalent.
#endif
system(std::string("xdg-open " + url).c_str());
#endif // LINUX
}
}

Expand Down

0 comments on commit 213b7e1

Please sign in to comment.