mirror of
https://github.com/Ximi1970/systray-x.git
synced 2026-02-08 07:19:03 +01:00
Update script installers
This commit is contained in:
59
dist/install.Fedora_35-Gnome.sh
vendored
Normal file
59
dist/install.Fedora_35-Gnome.sh
vendored
Normal file
@@ -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
|
||||
40
dist/install.Fedora_35-Kde.sh
vendored
Normal file
40
dist/install.Fedora_35-Kde.sh
vendored
Normal file
@@ -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
|
||||
31
dist/install.Fedora_35.sh
vendored
Normal file
31
dist/install.Fedora_35.sh
vendored
Normal file
@@ -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
|
||||
59
dist/install.Fedora_36-Gnome.sh
vendored
Normal file
59
dist/install.Fedora_36-Gnome.sh
vendored
Normal file
@@ -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
|
||||
40
dist/install.Fedora_36-Kde.sh
vendored
Normal file
40
dist/install.Fedora_36-Kde.sh
vendored
Normal file
@@ -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
|
||||
31
dist/install.Fedora_36.sh
vendored
Normal file
31
dist/install.Fedora_36.sh
vendored
Normal file
@@ -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
|
||||
59
dist/install.Fedora_Rawhide-Gnome.sh
vendored
Normal file
59
dist/install.Fedora_Rawhide-Gnome.sh
vendored
Normal file
@@ -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
|
||||
40
dist/install.Fedora_Rawhide-Kde.sh
vendored
Normal file
40
dist/install.Fedora_Rawhide-Kde.sh
vendored
Normal file
@@ -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
|
||||
31
dist/install.Fedora_Rawhide.sh
vendored
Normal file
31
dist/install.Fedora_Rawhide.sh
vendored
Normal file
@@ -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
|
||||
@@ -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
|
||||
50
dist/install.xUbuntu_22.04-Gnome.sh
vendored
Normal file
50
dist/install.xUbuntu_22.04-Gnome.sh
vendored
Normal file
@@ -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
|
||||
40
dist/install.xUbuntu_22.04-Kde.sh
vendored
Normal file
40
dist/install.xUbuntu_22.04-Kde.sh
vendored
Normal file
@@ -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
|
||||
31
dist/install.xUbuntu_22.04.sh
vendored
Normal file
31
dist/install.xUbuntu_22.04.sh
vendored
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user