From 2dcadf627eb2e58eed506fd7b189a4404fec5b43 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Mon, 16 Jan 2017 21:13:06 +0100 Subject: [PATCH] Using ram for browser (Firefox) cache on desktop images. --- config/firefox.conf | 7 +++++++ desktop.sh | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 config/firefox.conf diff --git a/config/firefox.conf b/config/firefox.conf new file mode 100644 index 000000000..9e2ae0ad2 --- /dev/null +++ b/config/firefox.conf @@ -0,0 +1,7 @@ +// This file can be used to configure global preferences for Firefox + +user_pref("browser.startup.homepage", "https://www.armbian.com"); +pref("reader.parse-on-load.enabled", false); +pref("browser.cache.disk.enable", false); +pref("browser.cache.memory.enable", true); +pref("browser.cache.memory.capacity", "-1"); \ No newline at end of file diff --git a/desktop.sh b/desktop.sh index eb203a0f3..19354d829 100644 --- a/desktop.sh +++ b/desktop.sh @@ -16,6 +16,9 @@ install_desktop () mkdir -p $CACHEDIR/$SDCARD/tmp/bin mount --bind $SRC/lib/bin/ $CACHEDIR/$SDCARD/tmp/bin + # install optimized firefox configuration + cp $SRC/lib/config/firefox.conf $CACHEDIR/$SDCARD/usr/lib/firefox/browser/defaults/preferences/syspref.js + # install default desktop settings chroot $CACHEDIR/$SDCARD /bin/bash -c "tar xfz /tmp/bin/$RELEASE-desktop.tgz -C /etc/skel/" chroot $CACHEDIR/$SDCARD /bin/bash -c "tar xfz /tmp/bin/$RELEASE-desktop.tgz -C /root/"