From c7fd58652eb6e4acdd623ed07e9ed75bf14e6c1c Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 8 Apr 2024 10:46:18 -0400 Subject: [PATCH 01/11] Add speech-dispatcher permissions Firefox uses speech-dispatcher for SpeechSynthesis. Besides adding libspeechd to the runtime, it needs access to the session service socket. https://gitlab.com/fedora/sigs/flatpak/fedora-flatpaks/-/issues/28 --- container.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/container.yaml b/container.yaml index 2140b11..d09b65b 100644 --- a/container.yaml +++ b/container.yaml @@ -25,6 +25,7 @@ flatpak: --filesystem=xdg-run/gvfs --filesystem=xdg-run/gvfsd --filesystem=xdg-run/pipewire-0 + --filesystem=xdg-run/speech-dispatcher --device=all --talk-name=org.freedesktop.FileManager1 --system-talk-name=org.freedesktop.NetworkManager From a55386d3a95024e1be6a6674e3b86ee4034e9980 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 8 Apr 2024 10:47:58 -0400 Subject: [PATCH 02/11] Update to F40 and rename --- container.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/container.yaml b/container.yaml index d09b65b..54d622e 100644 --- a/container.yaml +++ b/container.yaml @@ -1,8 +1,8 @@ flatpak: - id: org.mozilla.Firefox + id: org.mozilla.firefox branch: stable runtime-name: flatpak-runtime - runtime-version: f39 + runtime-version: f40 packages: - firefox command: firefox From 1b90ec68424f4da76ce649abe493e784ff5c821d Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 8 Apr 2024 11:06:03 -0400 Subject: [PATCH 03/11] Stop renaming appdata and desktop files These are now correctly named in the package itself in F40. --- container.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/container.yaml b/container.yaml index 54d622e..4ccadfc 100644 --- a/container.yaml +++ b/container.yaml @@ -6,8 +6,6 @@ flatpak: packages: - firefox command: firefox - rename-appdata-file: firefox.appdata.xml - rename-desktop-file: firefox.desktop rename-icon: firefox finish-args: |- --share=ipc From df7bc3fe79885254f1788e7369b5c101e8a8ef15 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Tue, 8 Oct 2024 12:56:32 -0400 Subject: [PATCH 04/11] F41 --- container.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container.yaml b/container.yaml index 4ccadfc..3acfa7e 100644 --- a/container.yaml +++ b/container.yaml @@ -2,7 +2,7 @@ flatpak: id: org.mozilla.firefox branch: stable runtime-name: flatpak-runtime - runtime-version: f40 + runtime-version: f41 packages: - firefox command: firefox From 719b713fcd36941e99055143ac03c93b0c9a9d85 Mon Sep 17 00:00:00 2001 From: Jan Horak Date: Tue, 3 Dec 2024 14:24:42 +0100 Subject: [PATCH 05/11] Add org.mozilla.firefox.systemconfig unmanaged extension This allows to pass system configuration to the Firefox flatpak: https://jhorakdevblog.wordpress.com/2023/06/22/how-to-set-firefox-enterprise-policies-and-system-preferences-under-flatpak/ --- container.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/container.yaml b/container.yaml index 3acfa7e..c47dcd2 100644 --- a/container.yaml +++ b/container.yaml @@ -34,3 +34,5 @@ flatpak: --talk-name=org.freedesktop.Notifications --own-name=org.mpris.MediaPlayer2.firefox.* --own-name=org.mozilla.firefox.* + --extension=org.mozilla.firefox.systemconfig=directory=etc/firefox + --extension=org.mozilla.firefox.systemconfig=no-autodownload=true From 960357b77fdbb61534f6864910e04071e88d47aa Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Wed, 29 Jan 2025 19:45:41 -0500 Subject: [PATCH 06/11] Use add-extensions syntax This is now supported with flatpak-module-tools 1.1. --- container.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/container.yaml b/container.yaml index c47dcd2..5288902 100644 --- a/container.yaml +++ b/container.yaml @@ -7,6 +7,10 @@ flatpak: - firefox command: firefox rename-icon: firefox + add-extensions: + org.mozilla.firefox.systemconfig: + directory: etc/firefox + no-autodownload: true finish-args: |- --share=ipc --share=network @@ -34,5 +38,3 @@ flatpak: --talk-name=org.freedesktop.Notifications --own-name=org.mpris.MediaPlayer2.firefox.* --own-name=org.mozilla.firefox.* - --extension=org.mozilla.firefox.systemconfig=directory=etc/firefox - --extension=org.mozilla.firefox.systemconfig=no-autodownload=true From f6f90c2bb1762f2f328c80b632eaff1f72a3210e Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 28 Mar 2025 12:58:57 -0400 Subject: [PATCH 07/11] F42 --- container.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container.yaml b/container.yaml index 5288902..5d29458 100644 --- a/container.yaml +++ b/container.yaml @@ -2,7 +2,7 @@ flatpak: id: org.mozilla.firefox branch: stable runtime-name: flatpak-runtime - runtime-version: f41 + runtime-version: f42 packages: - firefox command: firefox From b65e6159532f554a76d21bc477793dc2977d030e Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 6 Oct 2025 11:47:59 -0400 Subject: [PATCH 08/11] F43 --- container.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container.yaml b/container.yaml index 5d29458..7184f9e 100644 --- a/container.yaml +++ b/container.yaml @@ -2,7 +2,7 @@ flatpak: id: org.mozilla.firefox branch: stable runtime-name: flatpak-runtime - runtime-version: f42 + runtime-version: f43 packages: - firefox command: firefox From 0a2700693f5717034adbd8d47388e22634510a41 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Wed, 5 Nov 2025 00:51:36 -0500 Subject: [PATCH 09/11] Drop ~/.cache/firefox permission The ~/.var/app/org.mozilla.firefox/cache/mozilla/firefox directory is properly used nowadays. https://gitlab.com/fedora/sigs/flatpak/fedora-flatpaks/-/issues/47 --- container.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/container.yaml b/container.yaml index 7184f9e..245613c 100644 --- a/container.yaml +++ b/container.yaml @@ -20,7 +20,6 @@ flatpak: --socket=pcsc --env=KRB5CCNAME=KCM: --filesystem=/run/.heim_org.h5l.kcm-socket - --filesystem=~/.cache/firefox:create --filesystem=~/.mozilla:create --filesystem=home:ro --filesystem=xdg-download:rw From 2d31fab2bc3343fe0ef6c45160957306ebd72a67 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Tue, 24 Mar 2026 20:40:27 -0400 Subject: [PATCH 10/11] F44 --- container.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container.yaml b/container.yaml index 245613c..95aa667 100644 --- a/container.yaml +++ b/container.yaml @@ -2,7 +2,7 @@ flatpak: id: org.mozilla.firefox branch: stable runtime-name: flatpak-runtime - runtime-version: f43 + runtime-version: f44 packages: - firefox command: firefox From 59c5ade3959364848d242b035cb5cb7f647d061f Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 10 Apr 2026 15:03:19 -0400 Subject: [PATCH 11/11] Add locale support --- container.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/container.yaml b/container.yaml index 95aa667..85e8e87 100644 --- a/container.yaml +++ b/container.yaml @@ -5,9 +5,14 @@ flatpak: runtime-version: f44 packages: - firefox + - firefox-langpacks command: firefox rename-icon: firefox add-extensions: + org.mozilla.firefox.Locale: + directory: share/runtime/locale + autodelete: true + locale-subset: true org.mozilla.firefox.systemconfig: directory: etc/firefox no-autodownload: true @@ -37,3 +42,10 @@ flatpak: --talk-name=org.freedesktop.Notifications --own-name=org.mpris.MediaPlayer2.firefox.* --own-name=org.mozilla.firefox.* + cleanup-commands: | + cd /app/lib64/firefox/langpacks + for f in *; do + l=`echo $f | sed -e 's/langpack-\([^-@]*\).*/\1/'` + rm -f $f + ln -sf ../../../share/runtime/locale/$l/$f . + done