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:
parent
065d09d71d
commit
295804fb27
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user