diff --git a/dist/install.openSUSE_Leap_15.2-Gnome.sh b/dist/install.15.4-Gnome.sh similarity index 100% rename from dist/install.openSUSE_Leap_15.2-Gnome.sh rename to dist/install.15.4-Gnome.sh diff --git a/dist/install.SLE_15_SP2-Kde.sh b/dist/install.15.4-Kde.sh similarity index 100% rename from dist/install.SLE_15_SP2-Kde.sh rename to dist/install.15.4-Kde.sh diff --git a/dist/install.SLE_15_SP2.sh b/dist/install.15.4.sh similarity index 100% rename from dist/install.SLE_15_SP2.sh rename to dist/install.15.4.sh diff --git a/dist/install.Fedora_35-Gnome.sh b/dist/install.Fedora_35-Gnome.sh new file mode 100644 index 0000000..ef69853 --- /dev/null +++ b/dist/install.Fedora_35-Gnome.sh @@ -0,0 +1,59 @@ +enableGnomeExtension() { + EXTENSION="appindicatorsupport@rgcjonas.gmail.com" + PACKAGE="gnome-shell-extension-appindicator" + ENABLE_CMD="/usr/bin/gnome-extensions" + ENABLE_CMD_OPTIONS="enable ${EXTENSION}" + + # + # Is the extension installed? + # + if [ -d /usr/share/gnome-shell/extensions/${EXTENSION} ] || [ -d ~/.local/share/gnome-shell/extensions/${EXTENSION} ] ; then + if [ -x $ENABLE_CMD ] ; then + $ENABLE_CMD $ENABLE_CMD_OPTIONS + fi + else + mkdir -p ~/.local/share/gnome-shell/extensions + tar -C ~/.local/share/gnome-shell/extensions -xJf ${DESTINATION}/gnome-shell-extension.tar.xz + if [ -x $ENABLE_CMD ] ; then + $ENABLE_CMD $ENABLE_CMD_OPTIONS + fi + fi + + echo + echo "Please logout and login to activate the gnome shell extension" + echo +} + +# +# Enable the gnome shell extension for the local user +# +if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then + enableGnomeExtension + + # + # Check for Qt + # + dnf list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui + if [ "$?" == "1" ] ; then + echo + echo "Please install the package qt5-qtbase-gui" + echo + echo "sudo dnf install qt5-qtbase-gui" + echo + fi +else + # + # Check for KDE + # + if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + echo + echo "Please use the __KDE_INSTALLER__ installer." + echo "This setup will not work." + echo + else + echo + echo "Please use the __MINIMAL_INSTALLER__ installer." + echo "This setup will not work." + echo + fi +fi diff --git a/dist/install.Fedora_35-Kde.sh b/dist/install.Fedora_35-Kde.sh new file mode 100644 index 0000000..26c4eb6 --- /dev/null +++ b/dist/install.Fedora_35-Kde.sh @@ -0,0 +1,40 @@ +## +# Check for Kde +# +if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + # + # Check for Qt + # + dnf list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui + if [ "$?" == "1" ] ; then + echo + echo "Please install the package qt5-qtbase-gui" + echo + echo "sudo dnf install qt5-qtbase-gui" + echo + fi + + dnf list installed "kf5*" | grep -q kf5-knotifications + if [ "$?" == "1" ] ; then + echo + echo "Please install the package kf5-knotifications" + echo + echo "sudo dnf install kf5-knotifications" + echo + fi +else + # + # Check for Gnome + # + if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then + echo + echo "Please use the __GNOME_INSTALLER__ installer." + echo "This setup will not work." + echo + else + echo + echo "Please use the __MINIMAL_INSTALLER__ installer." + echo "This setup will not work." + echo + fi +fi diff --git a/dist/install.Fedora_35.sh b/dist/install.Fedora_35.sh new file mode 100644 index 0000000..74e28ca --- /dev/null +++ b/dist/install.Fedora_35.sh @@ -0,0 +1,31 @@ +# +# Check for Gnome +# +if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then + echo + echo "Please use the __GNOME_INSTALLER__ installer." + echo "This setup will not work." + echo +else + # + # Check for KDE + # + if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + echo + echo "Please use the __KDE_INSTALLER__ installer." + echo "This setup will not work." + echo + else + # + # Check for Qt + # + dnf list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui + if [ "$?" == "1" ] ; then + echo + echo "Please install the package qt5-qtbase-gui" + echo + echo "sudo dnf install qt5-qtbase-gui" + echo + fi + fi +fi diff --git a/dist/install.Fedora_36-Gnome.sh b/dist/install.Fedora_36-Gnome.sh new file mode 100644 index 0000000..ef69853 --- /dev/null +++ b/dist/install.Fedora_36-Gnome.sh @@ -0,0 +1,59 @@ +enableGnomeExtension() { + EXTENSION="appindicatorsupport@rgcjonas.gmail.com" + PACKAGE="gnome-shell-extension-appindicator" + ENABLE_CMD="/usr/bin/gnome-extensions" + ENABLE_CMD_OPTIONS="enable ${EXTENSION}" + + # + # Is the extension installed? + # + if [ -d /usr/share/gnome-shell/extensions/${EXTENSION} ] || [ -d ~/.local/share/gnome-shell/extensions/${EXTENSION} ] ; then + if [ -x $ENABLE_CMD ] ; then + $ENABLE_CMD $ENABLE_CMD_OPTIONS + fi + else + mkdir -p ~/.local/share/gnome-shell/extensions + tar -C ~/.local/share/gnome-shell/extensions -xJf ${DESTINATION}/gnome-shell-extension.tar.xz + if [ -x $ENABLE_CMD ] ; then + $ENABLE_CMD $ENABLE_CMD_OPTIONS + fi + fi + + echo + echo "Please logout and login to activate the gnome shell extension" + echo +} + +# +# Enable the gnome shell extension for the local user +# +if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then + enableGnomeExtension + + # + # Check for Qt + # + dnf list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui + if [ "$?" == "1" ] ; then + echo + echo "Please install the package qt5-qtbase-gui" + echo + echo "sudo dnf install qt5-qtbase-gui" + echo + fi +else + # + # Check for KDE + # + if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + echo + echo "Please use the __KDE_INSTALLER__ installer." + echo "This setup will not work." + echo + else + echo + echo "Please use the __MINIMAL_INSTALLER__ installer." + echo "This setup will not work." + echo + fi +fi diff --git a/dist/install.Fedora_36-Kde.sh b/dist/install.Fedora_36-Kde.sh new file mode 100644 index 0000000..26c4eb6 --- /dev/null +++ b/dist/install.Fedora_36-Kde.sh @@ -0,0 +1,40 @@ +## +# Check for Kde +# +if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + # + # Check for Qt + # + dnf list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui + if [ "$?" == "1" ] ; then + echo + echo "Please install the package qt5-qtbase-gui" + echo + echo "sudo dnf install qt5-qtbase-gui" + echo + fi + + dnf list installed "kf5*" | grep -q kf5-knotifications + if [ "$?" == "1" ] ; then + echo + echo "Please install the package kf5-knotifications" + echo + echo "sudo dnf install kf5-knotifications" + echo + fi +else + # + # Check for Gnome + # + if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then + echo + echo "Please use the __GNOME_INSTALLER__ installer." + echo "This setup will not work." + echo + else + echo + echo "Please use the __MINIMAL_INSTALLER__ installer." + echo "This setup will not work." + echo + fi +fi diff --git a/dist/install.Fedora_36.sh b/dist/install.Fedora_36.sh new file mode 100644 index 0000000..74e28ca --- /dev/null +++ b/dist/install.Fedora_36.sh @@ -0,0 +1,31 @@ +# +# Check for Gnome +# +if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then + echo + echo "Please use the __GNOME_INSTALLER__ installer." + echo "This setup will not work." + echo +else + # + # Check for KDE + # + if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + echo + echo "Please use the __KDE_INSTALLER__ installer." + echo "This setup will not work." + echo + else + # + # Check for Qt + # + dnf list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui + if [ "$?" == "1" ] ; then + echo + echo "Please install the package qt5-qtbase-gui" + echo + echo "sudo dnf install qt5-qtbase-gui" + echo + fi + fi +fi diff --git a/dist/install.Fedora_Rawhide-Gnome.sh b/dist/install.Fedora_Rawhide-Gnome.sh new file mode 100644 index 0000000..ef69853 --- /dev/null +++ b/dist/install.Fedora_Rawhide-Gnome.sh @@ -0,0 +1,59 @@ +enableGnomeExtension() { + EXTENSION="appindicatorsupport@rgcjonas.gmail.com" + PACKAGE="gnome-shell-extension-appindicator" + ENABLE_CMD="/usr/bin/gnome-extensions" + ENABLE_CMD_OPTIONS="enable ${EXTENSION}" + + # + # Is the extension installed? + # + if [ -d /usr/share/gnome-shell/extensions/${EXTENSION} ] || [ -d ~/.local/share/gnome-shell/extensions/${EXTENSION} ] ; then + if [ -x $ENABLE_CMD ] ; then + $ENABLE_CMD $ENABLE_CMD_OPTIONS + fi + else + mkdir -p ~/.local/share/gnome-shell/extensions + tar -C ~/.local/share/gnome-shell/extensions -xJf ${DESTINATION}/gnome-shell-extension.tar.xz + if [ -x $ENABLE_CMD ] ; then + $ENABLE_CMD $ENABLE_CMD_OPTIONS + fi + fi + + echo + echo "Please logout and login to activate the gnome shell extension" + echo +} + +# +# Enable the gnome shell extension for the local user +# +if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then + enableGnomeExtension + + # + # Check for Qt + # + dnf list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui + if [ "$?" == "1" ] ; then + echo + echo "Please install the package qt5-qtbase-gui" + echo + echo "sudo dnf install qt5-qtbase-gui" + echo + fi +else + # + # Check for KDE + # + if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + echo + echo "Please use the __KDE_INSTALLER__ installer." + echo "This setup will not work." + echo + else + echo + echo "Please use the __MINIMAL_INSTALLER__ installer." + echo "This setup will not work." + echo + fi +fi diff --git a/dist/install.Fedora_Rawhide-Kde.sh b/dist/install.Fedora_Rawhide-Kde.sh new file mode 100644 index 0000000..26c4eb6 --- /dev/null +++ b/dist/install.Fedora_Rawhide-Kde.sh @@ -0,0 +1,40 @@ +## +# Check for Kde +# +if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + # + # Check for Qt + # + dnf list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui + if [ "$?" == "1" ] ; then + echo + echo "Please install the package qt5-qtbase-gui" + echo + echo "sudo dnf install qt5-qtbase-gui" + echo + fi + + dnf list installed "kf5*" | grep -q kf5-knotifications + if [ "$?" == "1" ] ; then + echo + echo "Please install the package kf5-knotifications" + echo + echo "sudo dnf install kf5-knotifications" + echo + fi +else + # + # Check for Gnome + # + if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then + echo + echo "Please use the __GNOME_INSTALLER__ installer." + echo "This setup will not work." + echo + else + echo + echo "Please use the __MINIMAL_INSTALLER__ installer." + echo "This setup will not work." + echo + fi +fi diff --git a/dist/install.Fedora_Rawhide.sh b/dist/install.Fedora_Rawhide.sh new file mode 100644 index 0000000..74e28ca --- /dev/null +++ b/dist/install.Fedora_Rawhide.sh @@ -0,0 +1,31 @@ +# +# Check for Gnome +# +if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then + echo + echo "Please use the __GNOME_INSTALLER__ installer." + echo "This setup will not work." + echo +else + # + # Check for KDE + # + if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + echo + echo "Please use the __KDE_INSTALLER__ installer." + echo "This setup will not work." + echo + else + # + # Check for Qt + # + dnf list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui + if [ "$?" == "1" ] ; then + echo + echo "Please install the package qt5-qtbase-gui" + echo + echo "sudo dnf install qt5-qtbase-gui" + echo + fi + fi +fi diff --git a/dist/install.SLE_15_SP2-Gnome.sh b/dist/install.openSUSE_Leap_15.4-Gnome.sh similarity index 75% rename from dist/install.SLE_15_SP2-Gnome.sh rename to dist/install.openSUSE_Leap_15.4-Gnome.sh index 125ba62..b3c3c97 100644 --- a/dist/install.SLE_15_SP2-Gnome.sh +++ b/dist/install.openSUSE_Leap_15.4-Gnome.sh @@ -1,29 +1,22 @@ enableGnomeExtension() { EXTENSION="appindicatorsupport@rgcjonas.gmail.com" PACKAGE="gnome-shell-extension-appindicator" - 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 installer is finished:" - echo - echo $ENABLE_CMD - echo - fi + ENABLE_CMD="/usr/bin/gnome-extensions" + ENABLE_CMD_OPTIONS="enable ${EXTENSION}" # # Is the extension installed? # if [ -d /usr/share/gnome-shell/extensions/${EXTENSION} ] || [ -d ~/.local/share/gnome-shell/extensions/${EXTENSION} ] ; then - $ENABLE_CMD + if [ -x $ENABLE_CMD ] ; then + $ENABLE_CMD $ENABLE_CMD_OPTIONS + fi else mkdir -p ~/.local/share/gnome-shell/extensions tar -C ~/.local/share/gnome-shell/extensions -xJf ${DESTINATION}/gnome-shell-extension.tar.xz - $ENABLE_CMD + if [ -x $ENABLE_CMD ] ; then + $ENABLE_CMD $ENABLE_CMD_OPTIONS + fi fi echo diff --git a/dist/install.openSUSE_Leap_15.2-Kde.sh b/dist/install.openSUSE_Leap_15.4-Kde.sh similarity index 100% rename from dist/install.openSUSE_Leap_15.2-Kde.sh rename to dist/install.openSUSE_Leap_15.4-Kde.sh diff --git a/dist/install.openSUSE_Leap_15.2.sh b/dist/install.openSUSE_Leap_15.4.sh similarity index 100% rename from dist/install.openSUSE_Leap_15.2.sh rename to dist/install.openSUSE_Leap_15.4.sh diff --git a/dist/install.xUbuntu_22.04-Gnome.sh b/dist/install.xUbuntu_22.04-Gnome.sh new file mode 100644 index 0000000..96468e6 --- /dev/null +++ b/dist/install.xUbuntu_22.04-Gnome.sh @@ -0,0 +1,50 @@ +enableGnomeExtension() { + EXTENSION="ubuntu-appindicator@ubuntu.com" + ENABLE_CMD="/usr/bin/gnome-extensions" + ENABLE_CMD_OPTIONS="enable ${EXTENSION}" + + # + # Is the extension installed? + # + if [ -x $ENABLE_CMD ] ; then + $ENABLE_CMD $ENABLE_CMD_OPTIONS + fi + + echo + echo "Please logout and login to activate the gnome shell extension" + echo +} + +# +# Check for Gnome +# +if [ "$XDG_CURRENT_DESKTOP" == "ubuntu:GNOME" ] ; then + enableGnomeExtension + + # + # Check for Qt + # + dpkg -l | grep -q libqt5widgets5 + if [ "$?" == "1" ] ; then + echo + echo "Please install the package libqt5widgets5" + echo + echo "sudo apt install libqt5widgets5" + echo + fi +else + # + # Check for KDE + # + if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + echo + echo "Please use the __KDE_INSTALLER__ installer." + echo "This setup will not work." + echo + else + echo + echo "Please use the __MINIMAL_INSTALLER__ installer." + echo "This setup will not work." + echo + fi +fi diff --git a/dist/install.xUbuntu_22.04-Kde.sh b/dist/install.xUbuntu_22.04-Kde.sh new file mode 100644 index 0000000..4e5aeec --- /dev/null +++ b/dist/install.xUbuntu_22.04-Kde.sh @@ -0,0 +1,40 @@ +# +# Check for KDE +# +if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + # + # Check for Qt + # + dpkg -l | grep -q libqt5widgets5 + if [ "$?" == "1" ] ; then + echo + echo "Please install the package libqt5widgets5" + echo + echo "sudo apt install libqt5widgets5" + echo + fi + + dpkg -l | grep -q libkf5notifications5 + if [ "$?" == "1" ] ; then + echo + echo "Please install the package libkf5notifications5" + echo + echo "sudo apt install libkf5notifications5" + echo + fi +else + # + # Check for Gnome + # + if [ "$XDG_CURRENT_DESKTOP" == "ubuntu:GNOME" ] ; then + echo + echo "Please use the __GNOME_INSTALLER__ installer." + echo "This setup will not work." + echo + else + echo + echo "Please use the __MINIMAL_INSTALLER__ installer." + echo "This setup will not work." + echo + fi +fi diff --git a/dist/install.xUbuntu_22.04.sh b/dist/install.xUbuntu_22.04.sh new file mode 100644 index 0000000..ab72f36 --- /dev/null +++ b/dist/install.xUbuntu_22.04.sh @@ -0,0 +1,31 @@ +# +# Check for Gnome +# +if [ "$XDG_CURRENT_DESKTOP" == "ubuntu:GNOME" ] ; then + echo + echo "Please use the __GNOME_INSTALLER__ installer." + echo "This setup will not work." + echo +else + # + # Check for KDE + # + if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + echo + echo "Please use the __KDE_INSTALLER__ installer." + echo "This setup will not work." + echo + else + # + # Check for Qt + # + dpkg -l | grep -q libqt5widgets5 + if [ "$?" == "1" ] ; then + echo + echo "Please install the package libqt5widgets5" + echo + echo "sudo apt install libqt5widgets5" + echo + fi + fi +fi