From ea104190df032d58ef564313fb97d5298104ec15 Mon Sep 17 00:00:00 2001 From: glitsj16 Date: Mon, 20 May 2024 05:06:41 +0000 Subject: profiles: streamline Firefox URL opening support (#6348) Changes: * Improve Firefox D-Bus comment * Add missing/standardize related comments * Include allow-bin-sh.inc in relevant profiles * Use Firefox URL open section in relevant profiles --- etc/profile-a-l/electron-mail.profile | 2 +- etc/profile-a-l/email-common.profile | 9 +++++++-- etc/profile-a-l/fluffychat.profile | 2 +- etc/profile-a-l/geary.profile | 10 ++++++++-- etc/profile-a-l/gtk-youtube-viewers-common.profile | 2 +- etc/profile-a-l/kube.profile | 5 ++++- etc/profile-a-l/lettura.profile | 5 ++++- etc/profile-a-l/linuxqq.profile | 10 ++++++++-- 8 files changed, 34 insertions(+), 11 deletions(-) (limited to 'etc/profile-a-l') diff --git a/etc/profile-a-l/electron-mail.profile b/etc/profile-a-l/electron-mail.profile index 544756877..603ea4e2f 100644 --- a/etc/profile-a-l/electron-mail.profile +++ b/etc/profile-a-l/electron-mail.profile @@ -35,7 +35,7 @@ dbus-user filter dbus-user.talk org.freedesktop.Notifications dbus-user.talk org.freedesktop.secrets dbus-user.talk org.gnome.keyring.SystemPrompter -# allow D-Bus communication with firefox for opening links +# Allow D-Bus communication with Firefox for opening links dbus-user.talk org.mozilla.* # Redirect diff --git a/etc/profile-a-l/email-common.profile b/etc/profile-a-l/email-common.profile index cffa85fd5..2929d6a75 100644 --- a/etc/profile-a-l/email-common.profile +++ b/etc/profile-a-l/email-common.profile @@ -10,7 +10,6 @@ include email-common.local noblacklist ${HOME}/.bogofilter noblacklist ${HOME}/.bsfilter noblacklist ${HOME}/.gnupg -noblacklist ${HOME}/.mozilla noblacklist ${HOME}/.signature # when storing mail outside the default ${HOME}/Mail path, 'noblacklist' the custom path in your email-common.local # and 'blacklist' it in your disable-common.local too so it is kept hidden from other applications @@ -31,6 +30,12 @@ include disable-interpreters.inc include disable-programs.inc include disable-xdg.inc +# The lines below are needed to find the default Firefox profile name, to allow +# opening links in an existing instance of Firefox (note that it still fails if +# there isn't a Firefox instance running with the default profile; see #5352) +noblacklist ${HOME}/.mozilla +whitelist ${HOME}/.mozilla/firefox/profiles.ini + mkdir ${HOME}/.gnupg mkfile ${HOME}/.config/mimeapps.list mkfile ${HOME}/.signature @@ -38,7 +43,6 @@ whitelist ${HOME}/.bogofilter whitelist ${HOME}/.bsfilter whitelist ${HOME}/.config/mimeapps.list whitelist ${HOME}/.gnupg -whitelist ${HOME}/.mozilla/firefox/profiles.ini whitelist ${HOME}/.signature whitelist ${DOCUMENTS} whitelist ${DOWNLOADS} @@ -90,6 +94,7 @@ dbus-user.talk org.freedesktop.Notifications dbus-user.talk org.freedesktop.secrets dbus-user.talk org.gnome.keyring.* dbus-user.talk org.gnome.seahorse.* +# Allow D-Bus communication with Firefox for opening links dbus-user.talk org.mozilla.* dbus-system none diff --git a/etc/profile-a-l/fluffychat.profile b/etc/profile-a-l/fluffychat.profile index 63fe28f2f..e1b13edad 100644 --- a/etc/profile-a-l/fluffychat.profile +++ b/etc/profile-a-l/fluffychat.profile @@ -64,7 +64,7 @@ private-tmp dbus-user filter dbus-user.talk org.freedesktop.secrets -# allow D-Bus communication with firefox for opening links +# Allow D-Bus communication with Firefox for opening links dbus-user.talk org.mozilla.* dbus-system filter dbus-system.talk org.freedesktop.NetworkManager diff --git a/etc/profile-a-l/geary.profile b/etc/profile-a-l/geary.profile index da240c36a..1303922c8 100644 --- a/etc/profile-a-l/geary.profile +++ b/etc/profile-a-l/geary.profile @@ -14,9 +14,9 @@ noblacklist ${HOME}/.config/geary noblacklist ${HOME}/.local/share/evolution noblacklist ${HOME}/.local/share/geary noblacklist ${HOME}/.local/share/pki -noblacklist ${HOME}/.mozilla noblacklist ${HOME}/.pki +# sh is needed to allow Firefox to open links include allow-bin-sh.inc include disable-common.inc @@ -27,6 +27,12 @@ include disable-programs.inc include disable-shell.inc include disable-xdg.inc +# The lines below are needed to find the default Firefox profile name, to allow +# opening links in an existing instance of Firefox (note that it still fails if +# there isn't a Firefox instance running with the default profile; see #5352) +noblacklist ${HOME}/.mozilla +whitelist ${HOME}/.mozilla/firefox/profiles.ini + mkdir ${HOME}/.cache/evolution mkdir ${HOME}/.cache/folks mkdir ${HOME}/.cache/geary @@ -43,7 +49,6 @@ whitelist ${HOME}/.config/geary whitelist ${HOME}/.local/share/evolution whitelist ${HOME}/.local/share/geary whitelist ${HOME}/.local/share/pki -whitelist ${HOME}/.mozilla/firefox/profiles.ini whitelist ${HOME}/.pki whitelist /usr/share/geary include whitelist-common.inc @@ -88,6 +93,7 @@ dbus-user.talk org.gnome.OnlineAccounts dbus-user.talk org.gnome.evolution.dataserver.AddressBook10 dbus-user.talk org.gnome.evolution.dataserver.Sources5 ?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher +# Allow D-Bus communication with Firefox for opening links dbus-user.talk org.mozilla.* dbus-system none diff --git a/etc/profile-a-l/gtk-youtube-viewers-common.profile b/etc/profile-a-l/gtk-youtube-viewers-common.profile index 049448a23..b27a4fa35 100644 --- a/etc/profile-a-l/gtk-youtube-viewers-common.profile +++ b/etc/profile-a-l/gtk-youtube-viewers-common.profile @@ -18,5 +18,5 @@ whitelist ${HOME}/.mozilla/firefox/profiles.ini private-bin firefox,xterm dbus-user filter -# allow D-Bus communication with firefox for opening links +# Allow D-Bus communication with Firefox for opening links dbus-user.talk org.mozilla.* diff --git a/etc/profile-a-l/kube.profile b/etc/profile-a-l/kube.profile index 1f8757edb..79b286e58 100644 --- a/etc/profile-a-l/kube.profile +++ b/etc/profile-a-l/kube.profile @@ -13,6 +13,9 @@ noblacklist ${HOME}/.gnupg noblacklist ${HOME}/.local/share/kube noblacklist ${HOME}/.local/share/sink +# sh is needed to allow Firefox to open links +include allow-bin-sh.inc + include disable-common.inc include disable-devel.inc include disable-exec.inc @@ -78,7 +81,7 @@ dbus-user filter dbus-user.talk ca.desrt.dconf dbus-user.talk org.freedesktop.secrets dbus-user.talk org.freedesktop.Notifications -# allow D-Bus communication with firefox for opening links +# Allow D-Bus communication with Firefox for opening links dbus-user.talk org.mozilla.* dbus-system none diff --git a/etc/profile-a-l/lettura.profile b/etc/profile-a-l/lettura.profile index 94a455355..32f0909fb 100644 --- a/etc/profile-a-l/lettura.profile +++ b/etc/profile-a-l/lettura.profile @@ -11,6 +11,9 @@ noblacklist ${HOME}/.config/com.lettura.dev noblacklist ${HOME}/.lettura noblacklist ${HOME}/.local/share/com.lettura.dev +# sh is needed to allow Firefox to open links +include allow-bin-sh.inc + include disable-common.inc include disable-devel.inc include disable-exec.inc @@ -69,7 +72,7 @@ private-tmp dbus-user filter dbus-user.talk org.freedesktop.Notifications ?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher -# allow D-Bus communication with firefox for opening links +# Allow D-Bus communication with Firefox for opening links dbus-user.talk org.mozilla.* dbus-system none diff --git a/etc/profile-a-l/linuxqq.profile b/etc/profile-a-l/linuxqq.profile index e900c0914..278797fb3 100644 --- a/etc/profile-a-l/linuxqq.profile +++ b/etc/profile-a-l/linuxqq.profile @@ -7,15 +7,20 @@ include linuxqq.local include globals.local noblacklist ${HOME}/.config/QQ -noblacklist ${HOME}/.mozilla +# sh is needed to allow Firefox to open links include allow-bin-sh.inc include disable-shell.inc +# The lines below are needed to find the default Firefox profile name, to allow +# opening links in an existing instance of Firefox (note that it still fails if +# there isn't a Firefox instance running with the default profile; see #5352) +noblacklist ${HOME}/.mozilla +whitelist ${HOME}/.mozilla/firefox/profiles.ini + mkdir ${HOME}/.config/QQ whitelist ${HOME}/.config/QQ -whitelist ${HOME}/.mozilla/firefox/profiles.ini whitelist ${DESKTOP} whitelist /opt/QQ @@ -34,6 +39,7 @@ dbus-user.talk org.freedesktop.portal.IBus dbus-user.talk org.freedesktop.ScreenSaver dbus-user.talk org.gnome.Mutter.IdleMonitor ?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher +# Allow D-Bus communication with Firefox for opening links dbus-user.talk org.mozilla.* ignore dbus-user none -- cgit v1.2.3-54-g00ecf