1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-12-28 05:14:36 +02: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,7 +571,11 @@ void LinkApp::launch(const string &selectedFile, const string &selectedDir) {
}
chdir(opkMount.c_str());
exec = opkMount + exec;
if (exec[0] != '/') {
string tmp = opkMount + exec.substr(0, exec.find(" "));
if (fileExists(tmp))
exec = opkMount + exec;
}
}
else {