From 02576d7e195f22c70e921ae953f469efdc7628c6 Mon Sep 17 00:00:00 2001 From: glitsj16 Date: Mon, 20 May 2024 04:13:54 +0000 Subject: profiles: yelp: add Firefox URL open support (#6349) --- etc/profile-m-z/yelp.profile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'etc') diff --git a/etc/profile-m-z/yelp.profile b/etc/profile-m-z/yelp.profile index f957954dd..dbde8e0be 100644 --- a/etc/profile-m-z/yelp.profile +++ b/etc/profile-m-z/yelp.profile @@ -8,6 +8,9 @@ include globals.local noblacklist ${HOME}/.config/yelp +# 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 @@ -16,6 +19,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}/.config/yelp whitelist ${HOME}/.config/yelp whitelist /usr/libexec/webkit2gtk-4.0 @@ -59,6 +68,8 @@ private-tmp dbus-user filter dbus-user.own org.gnome.Yelp dbus-user.talk ca.desrt.dconf +# Allow D-Bus communication with Firefox for opening links +dbus-user.talk org.mozilla.* dbus-system none # read-only ${HOME} breaks some features: -- cgit v1.2.3-54-g00ecf