Make it easier to save/update Gnome favorite apps
This commit is contained in:
parent
2059719d40
commit
47379e2ec0
1 changed files with 5 additions and 1 deletions
|
@ -11,7 +11,11 @@ set_favorites_bar () {
|
|||
firefox=firefox
|
||||
fi
|
||||
|
||||
gsettings set org.gnome.shell favorite-apps "['org.gnome.Terminal.desktop', 'org.gnome.Nautilus.desktop', '$firefox.desktop', 'chromium.desktop']"
|
||||
if [ -r ${XDG_CONFIG_HOME:-$HOME/.config}/favorite-apps.conf ]; then
|
||||
gsettings set org.gnome.shell favorite-apps "$(cat ${XDG_CONFIG_HOME:-$HOME/.config}/favorite-apps.conf)"
|
||||
else
|
||||
gsettings set org.gnome.shell favorite-apps "['org.gnome.Terminal.desktop', 'org.gnome.Nautilus.desktop', '$firefox.desktop', 'chromium-browser.desktop']"
|
||||
fi
|
||||
}
|
||||
set_favorites_bar
|
||||
|
||||
|
|
Loading…
Reference in a new issue