From fc4b5a450e1c23cdad3cb7c7b9ab8ecb08c0f19e Mon Sep 17 00:00:00 2001 From: Thomas Duckworth Date: Sat, 17 Jan 2026 00:09:13 +1100 Subject: [PATCH] Ensure RUNTIME_ARCH is set Broke this in my previous commit. Oops. --- mkosi.extra/usr/lib/configure-firefox | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mkosi.extra/usr/lib/configure-firefox b/mkosi.extra/usr/lib/configure-firefox index b3289d4..3ff9f99 100755 --- a/mkosi.extra/usr/lib/configure-firefox +++ b/mkosi.extra/usr/lib/configure-firefox @@ -15,6 +15,10 @@ flatpak override --system org.mozilla.firefox \ --filesystem=xdg-config/gtk-3.0:ro \ --filesystem=xdg-run/speech-dispatcher:ro +# Get the architecture from the runtime. +RUNTIME_REF="$(flatpak info org.mozilla.firefox 2>/dev/null | grep -E 'Runtime:' | awk '{print $2}')" +RUNTIME_ARCH="$(echo "$RUNTIME_REF" | cut -d'/' -f2)" + # Install the KDE Linux default Firefox config into the Firefox flatpak system config extension. # This enables hardware acceleration on NVIDIA but can break it on other cards, # so this should only be done conditionally.