updated login-manager service checks

This commit is contained in:
JaKooLit 2024-09-10 13:00:34 +09:00
parent 0be860cbab
commit 9d7ffc1c78

View File

@ -172,6 +172,7 @@ printf "\n"
# Ensuring all in the scripts folder are made executable # Ensuring all in the scripts folder are made executable
chmod +x install-scripts/* chmod +x install-scripts/*
printf "\n%.0s" {1..3}
# check if any known login managers are active when users choose to install sddm # check if any known login managers are active when users choose to install sddm
if [ "$sddm" == "Y" ]; then if [ "$sddm" == "Y" ]; then
# List of services to check # List of services to check
@ -182,6 +183,8 @@ if [ "$sddm" == "Y" ]; then
if systemctl is-active --quiet "$svc"; then if systemctl is-active --quiet "$svc"; then
echo "${ERROR} $svc is active. Please stop or disable it first or do not choose SDDM to install." echo "${ERROR} $svc is active. Please stop or disable it first or do not choose SDDM to install."
echo "${NOTE} If you have GDM, no need to install SDDM. GDM will work fine as Login Manager for Hyprland." echo "${NOTE} If you have GDM, no need to install SDDM. GDM will work fine as Login Manager for Hyprland."
printf "\n%.0s" {1..3}
exit 1 exit 1
fi fi
done done