Repository navigation
fix(blanc): start 1.43 ECS builds under zypak - #842
Merged
Merged
Conversation
Blanc 1.43 moved to castLabs ECS and its AppRun now execs a native blanc-ecs-launcher instead of naming the Electron binary, so apply_extra could no longer find the launcher (#838). - apply_extra: when AppRun has no BIN= line, take the executable name from the AppDir's root desktop file (electron-builder names it after the same executableName). - manifest: unset CHROME_DESKTOP. A value leaked from the launching environment (e.g. code.desktop) makes Electron look the desktop file up through GIO inside the zygote; GIO starts a thread and the zygote aborts before entering the sandbox. zypak's portal-spawned children get Flatpak's environment, so the wrapper cannot unset it for them. - wrapper: keep exec'ing the Electron ELF under zypak (the ECS launcher replaces LD_PRELOAD and would drop zypak's hooks), and set the environment main.js requires from it: BLANC_ECS_LAUNCHER_ROOT and BLANC_ECS_FULL_PROFILE, with the same profile passed as --user-data-dir. A conflicting --user-data-dir is rejected with a message. - metainfo: protected (DRM) playback is unavailable in this package. Diagnosed together with upstream in bnfy/blanc#580.
This was referenced Oct 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #838.
Blanc 1.43 moved to castLabs ECS (Widevine Electron). Two things broke for the Flatpak, both diagnosed with upstream in bnfy/blanc#580:
blanc-ecs-launcherand no longer names the Electron binary (BIN=).apply_extra.shfalls back to the AppDir's root desktop file, which electron-builder names after the sameexecutableName(blanc.desktop→blanc).CHROME_DESKTOPleaked from the launching environment (a VS Code terminal setscode.desktop) makes Electron'sGetApplicationName()callg_desktop_app_info_new()in the zygote. Inside Flatpak GIO then starts agmainthread, and the zygote aborts (CHECK, SIGTRAP) because it must be single-threaded to enter the sandbox. Fixed with--unset-env=CHROME_DESKTOPinfinish-args, the same treatment asELECTRON_RUN_AS_NODE: zypak's portal-spawned children get Flatpak's environment, so the wrapper can't unset it for them.The wrapper still execs the Electron ELF under zypak. The ECS launcher replaces
LD_PRELOAD, which would drop zypak's hooks. The wrapper sets whatmain.jsrequires from the launcher instead:BLANC_ECS_LAUNCHER_ROOT, plusBLANC_ECS_FULL_PROFILEwith the same profile passed as--user-data-dir. A user-supplied--user-data-diris rejected with a message, because Blanc's profile guard would refuse it anyway. Protected (DRM) playback is unavailable, and the metainfo now says so.This overlaps with #841 from the Blanc maintainer, which takes the same approach. The differences: this PR doesn't run the vendor launcher's
--ecs-query-cdmon every start (it only fed a log line and added a way to fail at startup), it keeps resolving the launcher name from the AppDir instead of hardcodingblanc, and it adds no app-specific test.Tested (local build,
publish.sh --verify, Hyprland)check-apply-extra.shpasses with the 1.43.1 pin.:99, launched from a VS Code terminal withCHROME_DESKTOP=code.desktopset) and native Wayland.Seccomp: 2,NoNewPrivs: 1and a separate network namespace.flatpak kill, CDPBrowser.close), it records an unclean exit and holds every navigation until the user picks restore or fresh on the start page. That is upstream's own behaviour, not a packaging issue.ls -A ~is unchanged. The profile is~/.var/app/com.blancbrowser.Blanc/config/Blanc.--user-data-dir: both forms exit 2 with the message.Not tested: DRM (unavailable by design), file chooser, notifications, screen sharing, tray/MPRIS bus names.
Possibly pre-existing: on Wayland the window's app_id is
blanc, while the desktop file hasStartupWMClass=Blanc. Not compared against 1.42.1.