Ensure RUNTIME_ARCH is set

Broke this in my previous commit. Oops.
This commit is contained in:
Thomas Duckworth
2026-01-17 00:09:13 +11:00
parent 517ee4bc48
commit fc4b5a450e

View File

@@ -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.