A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(desktop): accept array-form AppRun sandbox fallback (#2271)
Hampusc4594397e762
diff --git a/fluxer_desktop/electron-builder.config.cjs b/fluxer_desktop/electron-builder.config.cjsindex 72254cf54..4c121cfdf 100644--- a/fluxer_desktop/electron-builder.config.cjs+++ b/fluxer_desktop/electron-builder.config.cjs@@ -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');}