From d78d95622aab0a20a0b532410644a886c3c44e55 Mon Sep 17 00:00:00 2001 From: Thomas Kaiser Date: Wed, 17 May 2017 13:59:00 +0200 Subject: [PATCH] More Chromium config tweaks Following discussion at https://github.com/armbian/build/commit/312c2db06f415b0514abc992909b4d2bd5f90d23#commitcomment-22173921 --- config/chromium.conf | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/config/chromium.conf b/config/chromium.conf index 250db61e6b..4db302579c 100644 --- a/config/chromium.conf +++ b/config/chromium.conf @@ -2,15 +2,13 @@ # /usr/bin/chromium-browser # Options to pass to chromium-browser -CHROMIUM_FLAGS="\ ---disable-smooth-scrolling \ +CHROMIUM_FLAGS="--disable-smooth-scrolling \ --disable-low-res-tiling \ --enable-low-end-device-mode \ --num-raster-threads=$(grep -c processor /proc/cpuinfo) \ --profiler-timing=0 \ --disable-composited-antialiasing \ ---disk-cache-dir=/tmp/cache \ ---disk-cache-size=$(df -B1 /tmp --output=source,avail | awk '/^tmpfs/ {printf ("%0.0f",$2*0.9); }') \ +--disk-cache-dir=/tmp/${USER}-cache \ +--disk-cache-size=$(findmnt --target /tmp -n -o AVAIL -b | awk '{printf ("%0.0f",$1*0.3); }') \ --no-sandbox \ ---test-type \ -" \ No newline at end of file +--test-type"