From 5bd5e095eeadcafa960c467de2f209f649193f0a Mon Sep 17 00:00:00 2001 From: Teja Swaroop Pothala Date: Tue, 29 Apr 2025 06:43:46 -0400 Subject: [PATCH] silence firefox security nag - develop --- src/ubuntu/install/firefox/install_firefox.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ubuntu/install/firefox/install_firefox.sh b/src/ubuntu/install/firefox/install_firefox.sh index 80c9594..932ffd4 100644 --- a/src/ubuntu/install/firefox/install_firefox.sh +++ b/src/ubuntu/install/firefox/install_firefox.sh @@ -176,6 +176,10 @@ else firefox -headless -CreateProfile "kasm $HOME/.mozilla/firefox/kasm" fi +# Silence Firefox security nag "Some of Firefox's features may offer less protection on your current operating system" +echo 'user_pref("security.sandbox.warn_unprivileged_namespaces", false);' > $HOME/.mozilla/firefox/kasm/user.js +chown 1000:1000 $HOME/.mozilla/firefox/kasm/user.js + if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then set_desktop_icon fi