|
|
@ -29,7 +29,6 @@ GNU General Public License for more details. |
|
|
|
#include <dlfcn.h> |
|
|
|
#include <dlfcn.h> |
|
|
|
|
|
|
|
|
|
|
|
#ifndef __ANDROID__ |
|
|
|
#ifndef __ANDROID__ |
|
|
|
extern char **environ; |
|
|
|
|
|
|
|
#include <pwd.h> |
|
|
|
#include <pwd.h> |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
@ -299,7 +298,7 @@ void Sys_ShellExecute( const char *path, const char *parms, int shouldExit ) |
|
|
|
pid_t id = fork( ); |
|
|
|
pid_t id = fork( ); |
|
|
|
if( id == 0 ) |
|
|
|
if( id == 0 ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
execve( xdgOpen, (char **)argv, environ ); |
|
|
|
execv( xdgOpen, (char **)argv ); |
|
|
|
fprintf( stderr, "error opening %s %s", xdgOpen, path ); |
|
|
|
fprintf( stderr, "error opening %s %s", xdgOpen, path ); |
|
|
|
_exit( 1 ); |
|
|
|
_exit( 1 ); |
|
|
|
} |
|
|
|
} |
|
|
|