mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-29 12:32:49 +02:00
Don't prepend the mounpoint to the binary path if not inside the OPK
This commit is contained in:
parent
5255bf6de3
commit
bec8d8756f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user