From 3e62827abf559165cb0dc36221b08cc3ae773d49 Mon Sep 17 00:00:00 2001 From: pvincent Date: Sun, 14 Mar 2021 22:12:02 +0400 Subject: [PATCH] appindicator --- src/main | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main b/src/main index 131aa92..9c4321d 100755 --- a/src/main +++ b/src/main @@ -135,10 +135,16 @@ else fi ## gnome extension appindicator -runVoid dpkg-query --status gnome-shell-extension-appindicator -if [ $? -ne 0 ] ; then - sudo apt install -y gnome-shell-extension-appindicator +UUID=appindicatorsupport@rgcjonas.gmail.com +if [[ ! -d "$HOME/.local/share/gnome-shell/extensions/$UUID" ]]; then + wget -q https://extensions.gnome.org/extension-data/appindicatorsupportrgcjonas.gmail.com.v26.shell-extension.zip -O /tmp/appindicator.zip + mkdir -p "$HOME/.local/share/gnome-shell/extensions/$UUID" + unzip -q /tmp/appindicator.zip -d "$HOME/.local/share/gnome-shell/extensions/$UUID" + gnome-shell-extension-tool -e "$UUID" + gnome-shell-extension-tool -r "$UUID" LOGOUT_REQUIRED=true +else + echo "gnome-shell-extension-appindicator installed!" fi if [[ $LOGOUT_REQUIRED == true ]];then