1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-10-05 22:53:15 +03:00

Don't prepend the mounpoint to the binary path if not inside the OPK

This commit is contained in:
Paul Cercueil 2013-07-19 15:25:54 -04:00
parent 5255bf6de3
commit bec8d8756f

View File

@ -571,8 +571,12 @@ void LinkApp::launch(const string &selectedFile, const string &selectedDir) {
} }
chdir(opkMount.c_str()); chdir(opkMount.c_str());
if (exec[0] != '/') {
string tmp = opkMount + exec.substr(0, exec.find(" "));
if (fileExists(tmp))
exec = opkMount + exec; exec = opkMount + exec;
} }
}
else { else {
#endif #endif