fix(desktop): accept array-form AppRun sandbox fallback (#2271)

This commit is contained in:
Hampus
2026-08-31 21:42:03 +02:00
committed by GitHub
parent 6a188a4cdf
commit c4594397e7
+2 -1
View File
@@ -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');
}