Set grml-docs/startpage.html + grml.org as start pages in Firefox
authorMichael Prokop <mika@grml.org>
Fri, 5 May 2017 14:45:39 +0000 (16:45 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 5 May 2017 15:01:19 +0000 (17:01 +0200)
Closes grml/grml#18

etc/grml/fai/config/files/etc/firefox-esr/firefox-esr.js/GRML_FULL [new file with mode: 0644]
etc/grml/fai/config/scripts/GRML_FULL/01-firefox [new file with mode: 0755]

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 (file)
index 0000000..fe8a95e
--- /dev/null
@@ -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 (executable)
index 0000000..64dc868
--- /dev/null
@@ -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 <mika@grml.org>
+# 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