Skip to content

Commit

Permalink
Extend firefox-theme with extlink profile
Browse files Browse the repository at this point in the history
  • Loading branch information
KKoukiou committed Sep 4, 2024
1 parent 589f67f commit d145f61
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion firefox-ext
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@
## The script will setup all the environment voodoo needed to make
## mozilla work.

/usr/bin/firefox -P t1 -no-remote "${1/extlink/"https"}"
mkdir -p /tmp/anaconda-extlink-firefox-profile
cp /usr/share/anaconda/firefox-theme/extlink/user.js /tmp/anaconda-extlink-firefox-profile/

/usr/bin/firefox --profile /tmp/anaconda-extlink-firefox-profile -no-remote "${1/extlink/"https"}"
5 changes: 5 additions & 0 deletions firefox-theme/extlink/user.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* global user_pref */
// Don't have any startup page
user_pref("browser.startup.page", 0);
user_pref("browser.startup.homepage", "about:blank");
user_pref("browser.startup.homepage_override.once", {});
3 changes: 3 additions & 0 deletions firefox-theme/live/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ user_pref("datareporting.healthreport.uploadEnabled", false);
user_pref("datareporting.policy.dataSubmissionEnabled", false);
user_pref("toolkit.telemetry.unified", false);
user_pref("trailhead.firstrun.didSeeAboutWelcome", true);

// Don't show `Allow this site to open the PROTOCOL link with APPLICATION` dialog
user_pref("security.external_protocol_requires_permission", false);
2 changes: 2 additions & 0 deletions packaging/anaconda-webui.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ exit 0
%dir %{_datadir}/anaconda/firefox-theme/live/chrome
%{_datadir}/anaconda/firefox-theme/live/user.js
%{_datadir}/anaconda/firefox-theme/live/chrome/userChrome.css
%dir %{_datadir}/anaconda/firefox-theme/extlink
%{_datadir}/anaconda/firefox-theme/extlink/user.js
%{_libexecdir}/anaconda/webui-desktop
%{_libexecdir}/anaconda/firefox-ext
%{_datadir}/applications/extlinks.desktop
Expand Down

0 comments on commit d145f61

Please sign in to comment.