Only use one terminal
This commit is contained in:
parent
6e99d50ff7
commit
5ccd75af84
1 changed files with 10 additions and 1 deletions
|
@ -13,7 +13,16 @@ set_favorites_bar () {
|
||||||
then
|
then
|
||||||
gsettings set org.gnome.shell favorite-apps "$(cat "${XDG_CONFIG_HOME:-$HOME/.config}/favorite-apps.conf")"
|
gsettings set org.gnome.shell favorite-apps "$(cat "${XDG_CONFIG_HOME:-$HOME/.config}/favorite-apps.conf")"
|
||||||
else
|
else
|
||||||
gsettings set org.gnome.shell favorite-apps "['org.gnome.Terminal.desktop', 'org.gnome.Ptyxis.desktop', 'org.gnome.Nautilus.desktop', 'org.gnome.Epiphany.desktop']"
|
_acp_terminal=org.gnome.Terminal.desktop
|
||||||
|
for dir in $(tr ':' '\n' <<< "$XDG_DATA_HOME:$XDG_DATA_DIRS")
|
||||||
|
do
|
||||||
|
if test -r "$dir/applications/org.gnome.Ptyxis.desktop"
|
||||||
|
then
|
||||||
|
_acp_terminal=org.gnome.Ptyxis.desktop
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
gsettings set org.gnome.shell favorite-apps "['$_acp_terminal', 'org.gnome.Nautilus.desktop', 'org.gnome.Epiphany.desktop']"
|
||||||
|
unset _acp_terminal
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
set_favorites_bar
|
set_favorites_bar
|
||||||
|
|
Loading…
Reference in a new issue