firefox: move read-only entries to disable-common.inc

Instead of duplicating them on every profile that tries to allow opening
links in Firefox.

And make that path read-write on firefox.profile.
This commit is contained in:
Kelvin M. Klann 2023-03-23 02:49:53 -03:00
parent 13cb318d40
commit 35885d7256
13 changed files with 4 additions and 12 deletions

View file

@ -346,6 +346,7 @@ read-only ${HOME}/.local/share/cool-retro-term
read-only ${HOME}/.local/share/nvim
read-only ${HOME}/.local/state/nvim
read-only ${HOME}/.mailcap
read-only ${HOME}/.mozilla/firefox/profiles.ini
read-only ${HOME}/.msmtprc
read-only ${HOME}/.mutt/muttrc
read-only ${HOME}/.muttrc

View file

@ -24,7 +24,6 @@ whitelist ${HOME}/.config/electron-mail
# there isn't a Firefox instance running with the default profile; see #5352)
noblacklist ${HOME}/.mozilla
whitelist ${HOME}/.mozilla/firefox/profiles.ini
read-only ${HOME}/.mozilla/firefox/profiles.ini
machine-id
nosound

View file

@ -85,6 +85,5 @@ dbus-user.talk org.gnome.seahorse.*
dbus-user.talk org.mozilla.*
dbus-system none
read-only ${HOME}/.mozilla/firefox/profiles.ini
read-only ${HOME}/.signature
restrict-namespaces

View file

@ -14,6 +14,9 @@ include globals.local
# https://github.com/netblue30/firejail/wiki/Frequently-Asked-Questions#how-do-i-run-two-instances-of-firefox
# https://github.com/netblue30/firejail/issues/4206#issuecomment-824806968
# (Ignore entry from disable-common.inc)
ignore read-only ${HOME}/.mozilla/firefox/profiles.ini
noblacklist ${HOME}/.cache/mozilla
noblacklist ${HOME}/.mozilla
noblacklist ${RUNUSER}/*firefox*

View file

@ -91,5 +91,4 @@ dbus-user.talk org.gnome.evolution.dataserver.Sources5
dbus-user.talk org.mozilla.*
dbus-system none
read-only ${HOME}/.mozilla/firefox/profiles.ini
restrict-namespaces

View file

@ -77,5 +77,4 @@ dbus-user.talk org.freedesktop.secrets
dbus-user.talk org.freedesktop.Notifications
dbus-system none
read-only ${HOME}/.mozilla/firefox/profiles.ini
restrict-namespaces

View file

@ -37,7 +37,5 @@ dbus-user.talk org.gnome.Mutter.IdleMonitor
dbus-user.talk org.mozilla.*
ignore dbus-user none
read-only ${HOME}/.mozilla/firefox/profiles.ini
# Redirect
include electron-common.profile

View file

@ -14,7 +14,6 @@ noblacklist ${HOME}/.config/Signal
# These lines are needed to allow Firefox to open links
noblacklist ${HOME}/.mozilla
whitelist ${HOME}/.mozilla/firefox/profiles.ini
read-only ${HOME}/.mozilla/firefox/profiles.ini
mkdir ${HOME}/.config/Signal
whitelist ${HOME}/.config/Signal

View file

@ -24,7 +24,6 @@ writable-run-user
# These lines are needed to allow Firefox to load your profile when clicking a link in an email
noblacklist ${HOME}/.mozilla
whitelist ${HOME}/.mozilla/firefox/profiles.ini
read-only ${HOME}/.mozilla/firefox/profiles.ini
noblacklist ${HOME}/.cache/thunderbird
noblacklist ${HOME}/.gnupg

View file

@ -60,5 +60,4 @@ dbus-user filter
dbus-user.talk org.freedesktop.secrets
dbus-system none
read-only ${HOME}/.mozilla/firefox/profiles.ini
restrict-namespaces

View file

@ -28,7 +28,6 @@ whitelist ${HOME}/.config/tutanota-desktop
# there isn't a Firefox instance running with the default profile; see #5352)
noblacklist ${HOME}/.mozilla
whitelist ${HOME}/.mozilla/firefox/profiles.ini
read-only ${HOME}/.mozilla/firefox/profiles.ini
machine-id
nosound

View file

@ -24,7 +24,6 @@ include allow-python3.inc
# there isn't a Firefox instance running with the default profile; see #5352)
noblacklist ${HOME}/.mozilla
whitelist ${HOME}/.mozilla/firefox/profiles.ini
read-only ${HOME}/.mozilla/firefox/profiles.ini
include disable-common.inc
include disable-devel.inc

View file

@ -23,7 +23,6 @@ include disable-xdg.inc
# This also requires dbus-user filtering (see below).
noblacklist ${HOME}/.mozilla
whitelist ${HOME}/.mozilla/firefox/profiles.ini
read-only ${HOME}/.mozilla/firefox/profiles.ini
mkdir ${HOME}/.cache/Zeal
mkdir ${HOME}/.config/Zeal