postinst 875 B

1234567891011121314
  1. if [ -f /etc/chromium-browser/default ]; then
  2. cat > /etc/chromium-browser/default << DELIM
  3. # Options to pass to chromium-browser
  4. CHROMIUM_FLAGS="--use-gl=egl --ignore-gpu-blocklist --enable-accelerated-video-decode --enable-zero-copy --enable-gpu-rasterization --enable-oop-rasterization --enable-pinch --flag-switches-begin --flag-switches-end --origin-trial-disabled-features=SecurePaymentConfirmation"
  5. DELIM
  6. fi
  7. # overwrite stock firefox configuration
  8. if [ -d /etc/firefox/ ]; then ln -sf /etc/orangepi/firefox.conf /etc/firefox/syspref.js; fi
  9. if [ -d /usr/lib/firefox-esr/ ]; then
  10. ln -sf /etc/orangepi/firefox.conf /usr/lib/firefox-esr/mozilla.cfg
  11. echo 'pref("general.config.obscure_value", 0);' > /usr/lib/firefox-esr/defaults/pref/local-settings.js
  12. echo 'pref("general.config.filename", "mozilla.cfg");' >> /usr/lib/firefox-esr/defaults/pref/local-settings.js
  13. fi