From 701e880c9fe54d5bcaad2fabf40224b0d09d104d Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Fri, 19 Mar 2021 14:30:53 +0000 Subject: [PATCH] Install chromium in Debian and fix favorites bar --- roles/debian/tasks/packages-gui.yml | 1 + roles/home-gui/files/gnome-setup.sh | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/roles/debian/tasks/packages-gui.yml b/roles/debian/tasks/packages-gui.yml index 1ecb475..eadf1fa 100644 --- a/roles/debian/tasks/packages-gui.yml +++ b/roles/debian/tasks/packages-gui.yml @@ -21,6 +21,7 @@ force_apt_get: yes vars: packages: + - chromium - dconf-cli - emacs - galculator diff --git a/roles/home-gui/files/gnome-setup.sh b/roles/home-gui/files/gnome-setup.sh index 7ec5318..391c369 100644 --- a/roles/home-gui/files/gnome-setup.sh +++ b/roles/home-gui/files/gnome-setup.sh @@ -10,7 +10,16 @@ set_favorites_bar () { else firefox=firefox fi - gsettings set org.gnome.shell favorite-apps "['org.gnome.Terminal.desktop', 'org.gnome.Nautilus.desktop', 'chromium_chromium.desktop', '$firefox.desktop']" + + local chromium + if [ -r /var/lib/snapd/desktop/applications ] + then + chromium=chromium_chromium + else + chromium=chromium + fi + + gsettings set org.gnome.shell favorite-apps "['org.gnome.Terminal.desktop', 'org.gnome.Nautilus.desktop', '$chromium.desktop', '$firefox.desktop']" } set_favorites_bar