From c18fe1a86e773c416994dd6282d57772442617e2 Mon Sep 17 00:00:00 2001 From: The412Banner Date: Sun, 20 Sep 2026 05:33:14 -0400 Subject: [PATCH] Desktop: turn Firefox's child-process sandboxes off The screenshot shows the tab crashing while the chrome around it draws text perfectly, and the 'no fonts' line is an annotation on that crash, logged by the child. The parent reads the fonts; the child, sandboxed with seccomp and namespaces that do not behave under proot, cannot, and Gecko takes a fatal path with no usable face. The prefs for this are advisory and a profile can override them, so the sandboxes are turned off in the environment the session hands every program it starts. --- tools/linuxfs/desktop/steamdeck-desktop | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/linuxfs/desktop/steamdeck-desktop b/tools/linuxfs/desktop/steamdeck-desktop index 21c536b01..be0f8bbe5 100644 --- a/tools/linuxfs/desktop/steamdeck-desktop +++ b/tools/linuxfs/desktop/steamdeck-desktop @@ -8,6 +8,12 @@ set -u export XDG_SESSION_TYPE=wayland XDG_CURRENT_DESKTOP=LXQt XDG_SESSION_DESKTOP=lxqt export QT_QPA_PLATFORM=wayland GDK_BACKEND=wayland,x11 SDL_VIDEODRIVER=wayland,x11 export QT_QPA_PLATFORMTHEME=lxqt +# Firefox's child processes sandbox themselves with seccomp and namespaces, neither of which +# behaves under proot: the content process ends up unable to read the font files its parent can, +# reports "no fonts" and dies - the tab crash, with the chrome around it still drawing text. +# The prefs for this are only advisory and a profile can override them; the environment is not. +export MOZ_DISABLE_CONTENT_SANDBOX=1 MOZ_DISABLE_GMP_SANDBOX=1 MOZ_DISABLE_RDD_SANDBOX=1 +export MOZ_DISABLE_SOCKET_PROCESS_SANDBOX=1 MOZ_DISABLE_UTILITY_SANDBOX=1 # wlroots allocates through gbm on a real DRM node, which the KGSL stand-in is not: pixman # (software, shm) is what boots here. BL_WLR_RENDERER=vulkan/gles2 tries acceleration. export WLR_RENDERER=${BL_WLR_RENDERER:-pixman}