diff --git a/dist/install.Fedora_31.sh b/dist/install.Fedora_31.sh index 6a0c3b0..1d10acc 100644 --- a/dist/install.Fedora_31.sh +++ b/dist/install.Fedora_31.sh @@ -1,16 +1,21 @@ enableGnomeExtension() { EXTENSION="appindicatorsupport@rgcjonas.gmail.com" PACKAGE="gnome-shell-extension-appindicator" - ENABLE_CMD="gnome-shell-extension-tool -e appindicatorsupport@rgcjonas.gmail.com" + ENABLE_CMD="gnome-shell-extension-tool -e ${EXTENSION}" # # Is the extension installed? # - if [ -d /usr/share/gnome-shell/extensions/$EXTENSION ] || [ -d ~/.local/share/gnome-shell/extensions/$EXTENSION ] ; then + if [ -d /usr/share/gnome-shell/extensions/${EXTENSION} ] || [ -d ~/.local/share/gnome-shell/extensions/${EXTENSION} ] ; then $ENABLE_CMD else - echo "Please install: "$PACKAGE - echo "And run: "$ENABLE_CMD + mkdir -p ~/.local/share/gnome-shell/extensions + tar -C ~/.local/share/gnome-shell/extensions -xJf ${DESTINATION}/gnome-shell-extension.tar.xz + $ENABLE_CMD fi + + echo + echo "Please logout and login to activate the gnome shell extension" + echo } # diff --git a/dist/install.SLE_15.sh b/dist/install.SLE_15.sh index 6a0c3b0..2060944 100644 --- a/dist/install.SLE_15.sh +++ b/dist/install.SLE_15.sh @@ -1,16 +1,34 @@ enableGnomeExtension() { EXTENSION="appindicatorsupport@rgcjonas.gmail.com" PACKAGE="gnome-shell-extension-appindicator" - ENABLE_CMD="gnome-shell-extension-tool -e appindicatorsupport@rgcjonas.gmail.com" + ENABLE_CMD="gnome-shell-extension-tool -e ${EXTENSION}" + + if [ ! -x /usr/bin/gnome-shell-extension-tool ] ; then + echo + echo "Please install the package gnome-shell-devel:" + echo + echo "sudo zypper install gnome-shell-devel" + echo + echo "And run after the insstaller is finished:" + echo + echo $ENABLE_CMD + echo + fi + # # Is the extension installed? # - if [ -d /usr/share/gnome-shell/extensions/$EXTENSION ] || [ -d ~/.local/share/gnome-shell/extensions/$EXTENSION ] ; then + if [ -d /usr/share/gnome-shell/extensions/${EXTENSION} ] || [ -d ~/.local/share/gnome-shell/extensions/${EXTENSION} ] ; then $ENABLE_CMD else - echo "Please install: "$PACKAGE - echo "And run: "$ENABLE_CMD + mkdir -p ~/.local/share/gnome-shell/extensions + tar -C ~/.local/share/gnome-shell/extensions -xJf ${DESTINATION}/gnome-shell-extension.tar.xz + $ENABLE_CMD fi + + echo + echo "Please logout and login to activate the gnome shell extension" + echo } # diff --git a/dist/install.SLE_15_SP1.sh b/dist/install.SLE_15_SP1.sh index 6a0c3b0..7f5a1fc 100644 --- a/dist/install.SLE_15_SP1.sh +++ b/dist/install.SLE_15_SP1.sh @@ -1,16 +1,34 @@ enableGnomeExtension() { EXTENSION="appindicatorsupport@rgcjonas.gmail.com" PACKAGE="gnome-shell-extension-appindicator" - ENABLE_CMD="gnome-shell-extension-tool -e appindicatorsupport@rgcjonas.gmail.com" + ENABLE_CMD="gnome-shell-extension-tool -e ${EXTENSION}" + + if [ ! -x /usr/bin/gnome-shell-extension-tool ] ; then + echo + echo "Please install the package gnome-shell-devel:" + echo + echo "sudo zypper install gnome-shell-devel" + echo + echo "And run after the insstaller is finished:" + echo + echo $ENABLE_CMD + echo + fi + # # Is the extension installed? # - if [ -d /usr/share/gnome-shell/extensions/$EXTENSION ] || [ -d ~/.local/share/gnome-shell/extensions/$EXTENSION ] ; then + if [ -d /usr/share/gnome-shell/extensions/${EXTENSION} ] || [ -d ~/.local/share/gnome-shell/extensions/${EXTENSION} ] ; then $ENABLE_CMD else - echo "Please install: "$PACKAGE - echo "And run: "$ENABLE_CMD + mkdir -p ~/.local/share/gnome-shell/extensions + tar -C ~/.local/share/gnome-shell/extensions -xJf ${DESTINATION}/gnome-shell-extension.tar.xz + $ENABLE_CMD fi + + echo + echo "Please logout and login to activate the gnome shell extension" + echo } # diff --git a/dist/install.openSUSE_Leap_15.1.sh b/dist/install.openSUSE_Leap_15.1.sh index 6a0c3b0..5cf616f 100644 --- a/dist/install.openSUSE_Leap_15.1.sh +++ b/dist/install.openSUSE_Leap_15.1.sh @@ -1,16 +1,34 @@ enableGnomeExtension() { EXTENSION="appindicatorsupport@rgcjonas.gmail.com" PACKAGE="gnome-shell-extension-appindicator" - ENABLE_CMD="gnome-shell-extension-tool -e appindicatorsupport@rgcjonas.gmail.com" + ENABLE_CMD="gnome-shell-extension-tool -e ${EXTENSION}" + + if [ ! -x /usr/bin/gnome-shell-extension-tool ] ; then + echo + echo "Please install the package gnome-shell-devel:" + echo + echo "sudo zypper install gnome-shell-devel" + echo + echo "And run after the insstaller is finished:" + echo + echo $ENABLE_CMD + echo + fi + # # Is the extension installed? # - if [ -d /usr/share/gnome-shell/extensions/$EXTENSION ] || [ -d ~/.local/share/gnome-shell/extensions/$EXTENSION ] ; then + if [ -d /usr/share/gnome-shell/extensions/${EXTENSION} ] || [ -d ~/.local/share/gnome-shell/extensions/${EXTENSION} ] ; then $ENABLE_CMD else - echo "Please install: "$PACKAGE - echo "And run: "$ENABLE_CMD + mkdir -p ~/.local/share/gnome-shell/extensions + tar -C ~/.local/share/gnome-shell/extensions -xJf ${DESTINATION}/gnome-shell-extension.tar.xz + $ENABLE_CMD fi + + echo + echo "Please logout and login to activate the gnome shell extension" + echo } # diff --git a/dist/install.openSUSE_Leap_15.2.sh b/dist/install.openSUSE_Leap_15.2.sh index 6a0c3b0..2060944 100644 --- a/dist/install.openSUSE_Leap_15.2.sh +++ b/dist/install.openSUSE_Leap_15.2.sh @@ -1,16 +1,34 @@ enableGnomeExtension() { EXTENSION="appindicatorsupport@rgcjonas.gmail.com" PACKAGE="gnome-shell-extension-appindicator" - ENABLE_CMD="gnome-shell-extension-tool -e appindicatorsupport@rgcjonas.gmail.com" + ENABLE_CMD="gnome-shell-extension-tool -e ${EXTENSION}" + + if [ ! -x /usr/bin/gnome-shell-extension-tool ] ; then + echo + echo "Please install the package gnome-shell-devel:" + echo + echo "sudo zypper install gnome-shell-devel" + echo + echo "And run after the insstaller is finished:" + echo + echo $ENABLE_CMD + echo + fi + # # Is the extension installed? # - if [ -d /usr/share/gnome-shell/extensions/$EXTENSION ] || [ -d ~/.local/share/gnome-shell/extensions/$EXTENSION ] ; then + if [ -d /usr/share/gnome-shell/extensions/${EXTENSION} ] || [ -d ~/.local/share/gnome-shell/extensions/${EXTENSION} ] ; then $ENABLE_CMD else - echo "Please install: "$PACKAGE - echo "And run: "$ENABLE_CMD + mkdir -p ~/.local/share/gnome-shell/extensions + tar -C ~/.local/share/gnome-shell/extensions -xJf ${DESTINATION}/gnome-shell-extension.tar.xz + $ENABLE_CMD fi + + echo + echo "Please logout and login to activate the gnome shell extension" + echo } # diff --git a/dist/install.openSUSE_Tumbleweed.sh b/dist/install.openSUSE_Tumbleweed.sh index 6a0c3b0..2060944 100644 --- a/dist/install.openSUSE_Tumbleweed.sh +++ b/dist/install.openSUSE_Tumbleweed.sh @@ -1,16 +1,34 @@ enableGnomeExtension() { EXTENSION="appindicatorsupport@rgcjonas.gmail.com" PACKAGE="gnome-shell-extension-appindicator" - ENABLE_CMD="gnome-shell-extension-tool -e appindicatorsupport@rgcjonas.gmail.com" + ENABLE_CMD="gnome-shell-extension-tool -e ${EXTENSION}" + + if [ ! -x /usr/bin/gnome-shell-extension-tool ] ; then + echo + echo "Please install the package gnome-shell-devel:" + echo + echo "sudo zypper install gnome-shell-devel" + echo + echo "And run after the insstaller is finished:" + echo + echo $ENABLE_CMD + echo + fi + # # Is the extension installed? # - if [ -d /usr/share/gnome-shell/extensions/$EXTENSION ] || [ -d ~/.local/share/gnome-shell/extensions/$EXTENSION ] ; then + if [ -d /usr/share/gnome-shell/extensions/${EXTENSION} ] || [ -d ~/.local/share/gnome-shell/extensions/${EXTENSION} ] ; then $ENABLE_CMD else - echo "Please install: "$PACKAGE - echo "And run: "$ENABLE_CMD + mkdir -p ~/.local/share/gnome-shell/extensions + tar -C ~/.local/share/gnome-shell/extensions -xJf ${DESTINATION}/gnome-shell-extension.tar.xz + $ENABLE_CMD fi + + echo + echo "Please logout and login to activate the gnome shell extension" + echo } #