From 595d0fe3e56ef8e1847123485e238c98db957717 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 5 May 2017 16:45:39 +0200 Subject: [PATCH] Set grml-docs/startpage.html + grml.org as start pages in Firefox Closes grml/grml#18 --- .../files/etc/firefox-esr/firefox-esr.js/GRML_FULL | 34 ++++++++++++++++++++++ etc/grml/fai/config/scripts/GRML_FULL/01-firefox | 15 ++++++++++ 2 files changed, 49 insertions(+) create mode 100644 etc/grml/fai/config/files/etc/firefox-esr/firefox-esr.js/GRML_FULL create mode 100755 etc/grml/fai/config/scripts/GRML_FULL/01-firefox diff --git a/etc/grml/fai/config/files/etc/firefox-esr/firefox-esr.js/GRML_FULL b/etc/grml/fai/config/files/etc/firefox-esr/firefox-esr.js/GRML_FULL new file mode 100644 index 0000000..fe8a95e --- /dev/null +++ b/etc/grml/fai/config/files/etc/firefox-esr/firefox-esr.js/GRML_FULL @@ -0,0 +1,34 @@ +/* Added by grml-live */ + +// This is the Debian specific preferences file for Firefox ESR +// You can make any change in here, it is the purpose of this file. +// You can, with this file and all files present in the +// /etc/firefox-esr directory, override any preference you can see in +// about:config. +// +// Note that lockPref is allowed in these preferences files if you +// don't want users to be able to override some preferences. + +pref("extensions.update.enabled", true); + +// Use LANG environment variable to choose locale +pref("intl.locale.matchOS", true); + +// Disable default browser checking. +pref("browser.shell.checkDefaultBrowser", false); + +// Avoid openh264 being downloaded. +pref("media.gmp-manager.url.override", "data:text/plain,"); + +// Disable openh264. +pref("media.gmp-gmpopenh264.enabled", false); + +// Default to classic view for about:newtab +sticky_pref("browser.newtabpage.enhanced", false); + +// Disable health report upload +pref("datareporting.healthreport.uploadEnabled", false); + +// Grml specific configuration +pref("startup.homepage_welcome_url", "file:///usr/share/doc/grml-docs/startpage.html"); +pref("startup.homepage_welcome_url.additional", "https://grml.org/"); diff --git a/etc/grml/fai/config/scripts/GRML_FULL/01-firefox b/etc/grml/fai/config/scripts/GRML_FULL/01-firefox new file mode 100755 index 0000000..64dc868 --- /dev/null +++ b/etc/grml/fai/config/scripts/GRML_FULL/01-firefox @@ -0,0 +1,15 @@ +#!/bin/bash +# Filename: ${GRML_FAI_CONFIG}/config/scripts/GRML_FULL/01-firefox +# Purpose: set startpage of Firefox and further configuration defaults +# Authors: grml-team (grml.org), (c) Michael Prokop +# Bug-Reports: see http://grml.org/bugs/ +# License: This file is licensed under the GPL v2 or any later version. +################################################################################ + +set -u +set -e + +fcopy -i -B -v /etc/firefox-esr/firefox-esr.js + +## END OF FILE ################################################################# +# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2 -- 2.1.4