mirror of
https://github.com/fluxerapp/fluxer.git
synced 2026-09-03 05:10:25 +03:00
fix(desktop): accept array-form AppRun sandbox fallback (#2271)
This commit is contained in:
@@ -1203,7 +1203,8 @@ async function inspectAppImageLauncher(artifactPath) {
|
||||
}
|
||||
|
||||
const appRunUsesNamespaceProbe = /unshare\s+(?:-Ur|--user)\s+true/.test(appRun);
|
||||
if (!appRunUsesNamespaceProbe || !appRun.includes('NO_SANDBOX=--no-sandbox')) {
|
||||
const appRunFallsBackToNoSandbox = /NO_SANDBOX=\(?--no-sandbox\)?/.test(appRun);
|
||||
if (!appRunUsesNamespaceProbe || !appRunFallsBackToNoSandbox) {
|
||||
violations.push('AppRun does not use the expected user-namespace probe before falling back to --no-sandbox');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user