From 559d48638e439754d53f75f0e0510fb7e3277fad Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sat, 4 Dec 2021 19:50:56 +0100 Subject: [PATCH] Homepage: set to about:home (MR 19) Use the standard Firefox homepage as default homepage. The information on the previous homepage is mostly obsolete, and this makes it look much nicer. --- Makefile | 9 +--- src/homepage/bottom.html | 34 --------------- src/homepage/distro_links.html | 7 ---- src/homepage/head.html | 77 ---------------------------------- src/policies.json | 2 +- 5 files changed, 2 insertions(+), 127 deletions(-) delete mode 100644 src/homepage/bottom.html delete mode 100644 src/homepage/distro_links.html delete mode 100644 src/homepage/head.html diff --git a/Makefile b/Makefile index 78baf06..77bd39c 100644 --- a/Makefile +++ b/Makefile @@ -10,18 +10,13 @@ DESTDIR := FIREFOX_DIR := /usr/lib/firefox FIREFOX_CONFIG_DIR := /etc/firefox -all: out/home.html out/userChrome.css out/userContent.css +all: out/userChrome.css out/userContent.css clean: rm -rf out out: mkdir out -out/home.html: src/homepage/*.html out - ( cd src/homepage; cat $(HOMEPAGE_FILES) ) > $@.temp - sed "s/@DISTRO@/$(DISTRO)/g" "$@.temp" > "$@" - rm "$@.temp" - out/userChrome.css: $(USERCHROME_FILES) out cat $(USERCHROME_FILES) > $@ @@ -35,8 +30,6 @@ install: all "$(DESTDIR)/$(FIREFOX_DIR)/defaults/pref/mobile-config-prefs.js" install -Dm644 src/mobile-config-autoconfig.js \ "$(DESTDIR)/$(FIREFOX_DIR)/mobile-config-autoconfig.js" - install -Dm644 "out/home.html" \ - "$(DESTDIR)/usr/share/mobile-config-firefox/home.html" install -Dm644 "out/userChrome.css" \ "$(DESTDIR)/etc/mobile-config-firefox/userChrome.css" install -Dm644 "out/userContent.css" \ diff --git a/src/homepage/bottom.html b/src/homepage/bottom.html deleted file mode 100644 index b20b57e..0000000 --- a/src/homepage/bottom.html +++ /dev/null @@ -1,34 +0,0 @@ - - -

- This is the desktop version of Firefox, but with a - - mobile-friendly configuration. Try zooming and - scrolling with your fingers! -

-

How to install add-ons

-

- Use the official - add-on website - from Mozilla. Ignore the note about "Add-ons Manager" and hit "Download - file" to install add-ons. Take care, some add-ons may not be respectful - of your privacy. Here is a free software add-on that we trust: -

- - -

How to change settings

-

- Read on to set a different homepage, search engine or change other - options. Tap the collapsed menu icon on the top right, then select - Preferences. Next, tap the category of the setting you want to - change on the left — house for Homepage, magnifying glass - for Search. Finally, change the desired setting on the right. -

- - diff --git a/src/homepage/distro_links.html b/src/homepage/distro_links.html deleted file mode 100644 index df38b36..0000000 --- a/src/homepage/distro_links.html +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/src/homepage/head.html b/src/homepage/head.html deleted file mode 100644 index f003f65..0000000 --- a/src/homepage/head.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - -Welcome to Firefox on @DISTRO@ - - - - -

- Welcome to Firefox on @DISTRO@ -

diff --git a/src/policies.json b/src/policies.json index ee22ee8..bb52b30 100644 --- a/src/policies.json +++ b/src/policies.json @@ -10,7 +10,7 @@ "OverridePostUpdatePage": "", "Homepage": { - "URL": "file:///usr/share/mobile-config-firefox/home.html", + "URL": "about:home", "Locked": false, "StartPage": "homepage" },