X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=source%2Fmupen64launcher%2Fsrc%2Fcselector.cpp;fp=source%2Fmupen64launcher%2Fsrc%2Fcselector.cpp;h=f5c63c9d290ae0c613c5a37893cd80f445f45ef1;hb=836fe65e49f43150d2f3f24ba5a5044537038da3;hp=cd55971fea479c6e3595526fcaa7caa6f4130edc;hpb=e18935a73fdf12c93fc3b6668b40cee2f8c90df2;p=mupen64plus-pandora.git diff --git a/source/mupen64launcher/src/cselector.cpp b/source/mupen64launcher/src/cselector.cpp index cd55971..f5c63c9 100755 --- a/source/mupen64launcher/src/cselector.cpp +++ b/source/mupen64launcher/src/cselector.cpp @@ -2162,7 +2162,7 @@ int8_t CSelector::RunExec( uint16_t selection ) // Add Executable to command command += "cd " + cmdpath + "; "; - command += "LD_LIBRARY_PATH=./; export LD_LIBRARY_PATH; "; + command += "LD_LIBRARY_PATH=/mnt/utmp/mupen64plus2/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; "; command += "./" + cmdname; // Setup arguments @@ -2278,7 +2278,7 @@ int8_t CSelector::RunExec( uint16_t selection ) CloseResources(0); - execlp( "/bin/sh", "/bin/sh", "-c", command.c_str(), NULL ); + execlp( "/bin/bash", "/bin/bash", "-c", command.c_str(), NULL ); //if execution continues then something went wrong and as we already called SDL_Quit we cannot continue, try reloading Log( "Error executing selected application, re-launching %s\n", APPNAME);