1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-17 23:35:20 +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); NULL);
#endif #endif
} else { } else {
INFO("Executing '%s' (%s %s)\n", title.c_str(), exec.c_str(), params.c_str()); std::string command = exec + " " + params;
execlp(exec.c_str(), exec.c_str(), INFO("Executing '%s' (%s)\n", title.c_str(), command.c_str());
!params.empty() ? params.c_str() : NULL, execlp("/bin/sh", "/bin/sh", "-c", command.c_str(), NULL);
NULL);
} }
//if execution continues then something went wrong and as we already called SDL_Quit we cannot continue //if execution continues then something went wrong and as we already called SDL_Quit we cannot continue