Fix bug in flatpak sandbox escaping.

This commit is contained in:
Martín Lucas Golini
2025-07-25 00:56:42 -03:00
parent bd278843e6
commit 46a55e3a02

View File

@@ -188,6 +188,13 @@ bool Process::create( const std::string& command, const std::vector<std::string>
return ret;
}
#if EE_PLATFORM == EE_PLATFORM_LINUX
if ( isFlatpakEnv() ) {
strings.push_back( "/usr/bin/flatpak-spawn" );
strings.push_back( "--host" );
}
#endif
if ( ( options & UseAbsolutePath ) && command.find_first_of( "\\/" ) == std::string::npos ) {
rcommand = Sys::which( command );
if ( !rcommand.empty() )