mirror of https://github.com/axmolengine/axmol.git
Linux Application::openURL return fixed (#16903)
This commit is contained in:
parent
ba321e3ecc
commit
964b65e44e
|
@ -144,7 +144,7 @@ std::string Application::getVersion()
|
|||
bool Application::openURL(const std::string &url)
|
||||
{
|
||||
std::string op = std::string("xdg-open ").append(url);
|
||||
return system(op.c_str())!=-1;
|
||||
return system(op.c_str()) == 0;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue