Browse Source

gnome-shell force restart if needed

bookworm
pvincent 3 years ago
parent
commit
0f47c96bbb
  1. 11
      src/main

11
src/main

@ -192,8 +192,8 @@ else
echo "gnome-extensions-cli already installed!" echo "gnome-extensions-cli already installed!"
fi fi
echo "## gnome extension system-monitor"
echo "================================="
echo "## gnome-shell install several extensions"
echo "========================================="
EXTENSIONS=( EXTENSIONS=(
"appindicatorsupport@rgcjonas.gmail.com" "appindicatorsupport@rgcjonas.gmail.com"
"system-monitor@paradoxxx.zero.gmail.com" "system-monitor@paradoxxx.zero.gmail.com"
@ -201,8 +201,10 @@ EXTENSIONS=(
"netspeed@hedayaty.gmail.com" "netspeed@hedayaty.gmail.com"
) )
NEED_GNOME_SHELL_RESTART=false
for extension in "${EXTENSIONS[@]}"; do for extension in "${EXTENSIONS[@]}"; do
if [[ ! -d $HOME/.local/share/gnome-shell/extensions/$extension ]];then if [[ ! -d $HOME/.local/share/gnome-shell/extensions/$extension ]];then
NEED_GNOME_SHELL_RESTART=true
gnome-extensions-cli --backend file install $extension gnome-extensions-cli --backend file install $extension
if [[ -d $HOME/.local/share/gnome-shell/extensions/$extension/schemas ]]; then if [[ -d $HOME/.local/share/gnome-shell/extensions/$extension/schemas ]]; then
sudo cp $HOME/.local/share/gnome-shell/extensions/$extension/schemas/*.gschema.xml /usr/share/glib-2.0/schemas/ sudo cp $HOME/.local/share/gnome-shell/extensions/$extension/schemas/*.gschema.xml /usr/share/glib-2.0/schemas/
@ -213,6 +215,7 @@ for extension in "${EXTENSIONS[@]}"; do
fi fi
done done
echo "# gnome extra settings" echo "# gnome extra settings"
echo "======================" echo "======================"
gsettings set org.gnome.shell.extensions.system-monitor show-tooltip true gsettings set org.gnome.shell.extensions.system-monitor show-tooltip true
@ -263,3 +266,7 @@ echo
echo echo
echo "# DEBIAN-GNOME successfully installed!" echo "# DEBIAN-GNOME successfully installed!"
echo echo
if [[ $NEED_GNOME_SHELL_RESTART == true ]]; then
killall -HUP gnome-shell
fi
Loading…
Cancel
Save