Update package generators

This commit is contained in:
Ximi1970
2021-09-29 23:14:03 +02:00
parent d5e0766a8b
commit 276e54ebc3
18 changed files with 26 additions and 39 deletions

View File

@@ -3,19 +3,7 @@ enableGnomeExtension() {
PACKAGE="gnome-shell-extension-appindicator"
ENABLE_CMD="/usr/bin/gnome-shell-extension-tool"
ENABLE_CMD_OPTIONS="-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 $ENABLE_CMD_OPTIONS
echo
fi
#
# Is the extension installed?
#
@@ -37,7 +25,7 @@ enableGnomeExtension() {
}
#
# Check for Gnome
# Enable the gnome shell extension for the local user
#
if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then
enableGnomeExtension
@@ -45,13 +33,13 @@ if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then
#
# Check for Qt
#
rpm -qa | grep -q libQt5Widgets5
dpkg -l | grep -q libqt5widgets5
if [ "$?" == "1" ] ; then
echo
echo "Please install the package libqt5widgets5"
echo
echo "sudo zypper install libQt5Widgets5"
echo
echo
echo "Please install the package libqt5widgets5"
echo
echo "sudo apt install libqt5widgets5"
echo
fi
else
#

View File

@@ -1,25 +1,25 @@
##
# Check for Kde
#
# Check for KDE
#
if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then
#
# Check for Qt
#
dnf list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui
dpkg -l | grep -q libqt5widgets5
if [ "$?" == "1" ] ; then
echo
echo "Please install the package qt5-qtbase-gui"
echo "Please install the package libqt5widgets5"
echo
echo "sudo dnf install qt5-qtbase-gui"
echo "sudo apt install libqt5widgets5"
echo
fi
dnf list installed "kf5*" | grep -q kf5-knotifications
dpkg -l | grep -q libkf5notifications5
if [ "$?" == "1" ] ; then
echo
echo "Please install the package kf5-knotifications"
echo "Please install the package libkf5notifications5"
echo
echo "sudo dnf install kf5-knotifications"
echo "sudo apt install libkf5notifications5"
echo
fi
else

View File

@@ -19,12 +19,12 @@ else
#
# Check for Qt
#
dnf list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui
dpkg -l | grep -q libqt5widgets5
if [ "$?" == "1" ] ; then
echo
echo "Please install the package qt5-qtbase-gui"
echo "Please install the package libqt5widgets5"
echo
echo "sudo dnf install qt5-qtbase-gui"
echo "sudo apt install libqt5widgets5"
echo
fi
fi

View File

@@ -2,7 +2,7 @@ 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:"

View File

@@ -3,7 +3,7 @@ enableGnomeExtension() {
PACKAGE="gnome-shell-extension-appindicator"
ENABLE_CMD="/usr/bin/gnome-extensions"
ENABLE_CMD_OPTIONS="enable ${EXTENSION}"
#
# Is the extension installed?
#
@@ -25,7 +25,7 @@ enableGnomeExtension() {
}
#
# Enable the gnome shell extension for the local user
# Check for Gnome
#
if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then
enableGnomeExtension
@@ -33,12 +33,12 @@ if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then
#
# Check for Qt
#
dnf list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui
rpm -qa | grep -q libQt5Widgets5
if [ "$?" == "1" ] ; then
echo
echo "Please install the package qt5-qtbase-gui"
echo "Please install the package libqt5widgets5"
echo
echo "sudo dnf install qt5-qtbase-gui"
echo "sudo zypper install libQt5Widgets5"
echo
fi
else
@@ -57,4 +57,3 @@ else
echo
fi
fi