Install chromium in Debian and fix favorites bar

This commit is contained in:
Anthony Rose 2021-03-19 14:30:53 +00:00
parent ea6726ae98
commit 701e880c9f
2 changed files with 11 additions and 1 deletions

View file

@ -21,6 +21,7 @@
force_apt_get: yes
vars:
packages:
- chromium
- dconf-cli
- emacs
- galculator

View file

@ -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