Added a sandbox breakout on game launch if running as Flatpak.

This commit is contained in:
Leon Styhre 2022-04-24 11:19:42 +02:00
parent a98ba7a42d
commit 5d1e9cce7d

View file

@ -1184,6 +1184,11 @@ void FileData::launchGame()
getSourceFileData()->getSystem()->getFullName());
int returnValue = 0;
#if defined(FLATPAK_BUILD)
// Break out of the sandbox.
command = "flatpak-spawn --host " + command;
#endif
LOG(LogDebug) << "Raw emulator launch command:";
LOG(LogDebug) << commandRaw;
LOG(LogInfo) << "Expanded emulator launch command:";