1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Fix legacy mode reload with AppImage

This commit is contained in:
Mathieu Schroeter 2018-08-17 10:30:48 +02:00
parent 065d09d71d
commit 295804fb27

View File

@ -1119,7 +1119,8 @@ main (int argc, char * argv[])
}
_argv.push_back (nullptr);
execv (argv[0], const_cast<char **> (&_argv[0]));
std::string argv0 = getenv ("APPIMAGE") ? getenv ("APPIMAGE") : argv[0];
execv (argv0.c_str (), const_cast<char **> (&_argv[0]));
}
return 0;