1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-22 12:48:26 +02:00

Revert to launching in the shell for non-OPK apps

This commit is contained in:
Paul Cercueil 2014-02-05 16:26:00 +01:00
parent a7f0fef059
commit 55a6528cde

View File

@ -620,10 +620,9 @@ void LinkApp::launch(const string &selectedFile) {
NULL);
#endif
} else {
INFO("Executing '%s' (%s %s)\n", title.c_str(), exec.c_str(), params.c_str());
execlp(exec.c_str(), exec.c_str(),
!params.empty() ? params.c_str() : NULL,
NULL);
std::string command = exec + " " + params;
INFO("Executing '%s' (%s)\n", title.c_str(), command.c_str());
execlp("/bin/sh", "/bin/sh", "-c", command.c_str(), NULL);
}
//if execution continues then something went wrong and as we already called SDL_Quit we cannot continue