From b08e076372ecc1010b78dcdcff60d99be24b4bc8 Mon Sep 17 00:00:00 2001 From: Aaron Jackson Date: Tue, 23 Jan 2024 13:53:44 +0000 Subject: [PATCH] Replace firefox snap with firefox-esr from mozilla ppa Firefox running in snap does not run under vncserver due to some cgroup issue I don't have time to look into right now. Relaces to #28 --- modules/base.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/base.sh b/modules/base.sh index 3603f1d..5cd21d9 100644 --- a/modules/base.sh +++ b/modules/base.sh @@ -32,3 +32,13 @@ sudo ./aws/install # Add terminal shortcut to desktop for easy access mkdir -p ~/Desktop ln -s /usr/share/applications/mate-terminal.desktop ~/Desktop/ + +# Replace firefox snap with debian package if it's installed +# snap packages have some issues with VNC because of cgroup +if [ -f /snap/bin/firefox ] ; then + # On Ubuntu 22.04+, deb `firefox` package is transitional package + # and results in the snap package installation. + sudo snap remove firefox + sudo add-apt-repository -y ppa:mozillateam/ppa + sudo apt install -y -q firefox-esr +fi