Files
SysTray-X/dist/install.Arch-Kde.sh
2020-11-24 15:17:12 +01:00

41 lines
938 B
Bash

#
# Check for KDE
#
if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then
#
# Check for Qt
#
pacman -Q qt5-base 2>/dev/null | grep -q qt5-base
if [ "$?" == "1" ] ; then
echo
echo "Please install the package qt5-base"
echo
echo "sudo pacman -S qt5-base"
echo
fi
pacman -Q knotifications 2>/dev/null | grep -q knotifications
if [ "$?" == "1" ] ; then
echo
echo "Please install the package knotifications"
echo
echo "sudo pacman -S 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