mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Fix bug in flatpak sandbox escaping.
This commit is contained in:
@@ -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() )
|
||||
|
||||
Reference in New Issue
Block a user