#0 - Fix Electron app launches (Lens, Claude Desktop, ...) in unprivileged Kubernetes pods #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "0-fix-electron-app-launches"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Electron apps (Lens, a user-installed Claude Desktop, VS Code, ...) crashed instantly in the
coder-xfce-vncworkspace. Two independent root causes, both verified live in a running workspace, both now handled by the image:RuntimeDefaultseccomp profile: unprivileged user namespaces are blocked, and the setuidchrome-sandboxfallback cannot re-gainCAP_SYS_ADMIN(excluded from the bounding set). →ENV ELECTRON_DISABLE_SANDBOX=1stage-wide./dev/shmoverruns at desktop resolution → renderer crashes (exitCode: 4) and misleadingGPU process isn't usable. Goodbye.fatals. → every Lens launch path (PATH, XFCE menu,lens://URLs) routes through a wrapper adding--disable-dev-shm-usage.Supporting changes:
update-alternativesentry point so upgrades cannot strand it.coder-init-desktopparks (renames to.bak) a stale user-local Lens entry on the PVC that would otherwise shadow the wrapper-routed override forever./usr/local/bin/jetbrains-toolboxsymlink (Toolbox 2.x keeps the binary underbin/) and aligned its desktop entry with the documented--disable-gpu.Verification
/dev/shmflat, zero renderer crashes.Note
Stacked on
8d094d2(Lens install, branch0-add-k8s-tooling) because the fix modifies that Dockerfile block. If that branch merges to master first, this PR reduces to the fix commit alone.🤖 Generated with Claude Code
124c3f8838337cf8b93c