mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-05 07:07:29 +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,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 {
|
||||
|
Loading…
Reference in New Issue
Block a user