@ -107,7 +107,7 @@ void Booster::initialize(int initialArgc, char ** initialArgv, int newBoosterLau
SingleInstancePluginEntry * pluginEntry = singleInstance - > pluginEntry ( ) ;
SingleInstancePluginEntry * pluginEntry = singleInstance - > pluginEntry ( ) ;
if ( pluginEntry )
if ( pluginEntry )
{
{
std : : string lockedAppName = get LockedApp Name( ) ;
std : : string lockedAppName = get FinalFile Name( ) ;
if ( ! pluginEntry - > lockFunc ( lockedAppName . c_str ( ) ) )
if ( ! pluginEntry - > lockFunc ( lockedAppName . c_str ( ) ) )
{
{
// Try to activate the window of the existing instance
// Try to activate the window of the existing instance
@ -433,7 +433,8 @@ void Booster::setEnvironmentBeforeLaunch()
if ( ! errno & & cur_prio < m_appData - > priority ( ) )
if ( ! errno & & cur_prio < m_appData - > priority ( ) )
setpriority ( PRIO_PROCESS , 0 , m_appData - > priority ( ) ) ;
setpriority ( PRIO_PROCESS , 0 , m_appData - > priority ( ) ) ;
setCgroup ( m_appData - > fileName ( ) ) ;
std : : string fileName = getFinalFileName ( ) ;
setCgroup ( fileName ) ;
if ( ! m_appData - > isPrivileged ( ) ) {
if ( ! m_appData - > isPrivileged ( ) ) {
// The application is not privileged. Drop group ID
// The application is not privileged. Drop group ID
@ -615,9 +616,9 @@ void Booster::resetOomAdj()
}
}
}
}
std : : string Booster : : get LockedApp Name( )
std : : string Booster : : get FinalFile Name( )
{
{
std : : string name = m_appData - > app Name( ) ;
std : : string name = m_appData - > file Name( ) ;
if ( name = = " /usr/bin/sailjail " ) {
if ( name = = " /usr/bin/sailjail " ) {
// This doesn't implement sailjail's parsing logic but instead
// This doesn't implement sailjail's parsing logic but instead
// has some assumptions about the arguments:
// has some assumptions about the arguments: