mirror of
https://github.com/Snigdha-OS/snigdhaos-system-installation.git
synced 2025-12-06 12:53:51 +01:00
53 lines
1.2 KiB
Bash
53 lines
1.2 KiB
Bash
#!/bin/bash
|
|
# set -e
|
|
|
|
# Author : Eshan Roy <eshan@snigdhaos.or>
|
|
# Author URL : https://eshanized.github.io/
|
|
|
|
echo
|
|
echo "--->> Start snigdhaos-fixes <<---"
|
|
echo
|
|
|
|
desktop=$(ls /usr/share/xsessions/)
|
|
echo
|
|
# shellcheck disable=SC2086
|
|
echo "Your Current Desktop: "$desktop
|
|
echo
|
|
|
|
# Let's make some cases
|
|
case $desktop in
|
|
ukui.desktop)
|
|
echo "Found : Lightm [STATUS: ACTIVE]"
|
|
pacman -S sddm --noconfirm --needed
|
|
systemctl enable sddm.service -f
|
|
;;
|
|
deepin.desktop)
|
|
echo "Found : Lightm [STATUS: ACTIVE]"
|
|
pacman -S sddm --noconfirm --needed
|
|
systemctl enable sddm.service -f
|
|
;;
|
|
*)
|
|
echo "Nothing To Do!!!"
|
|
esac
|
|
|
|
if [ -f /usr/bin/gnome-session ]; then
|
|
echo "INSTALLED: GDM [STATUS: ACTIVE]"
|
|
pacman -S sddm --noconfirm --needed
|
|
systemctl enable sddm.service -f
|
|
fi
|
|
|
|
if [ -f /usr/bin/startdde ]; then
|
|
echo "INSTALLED: LightDM [STATUS: ACTIVE]"
|
|
pacman -S sddm --noconfirm --needed
|
|
systemctl enable sddm.service -f
|
|
fi
|
|
|
|
if [ -f /usr/bin/ukui-session ]; then
|
|
echo "INSTALLED: LightDM [STATUS: ACTIVE]"
|
|
pacman -S sddm --noconfirm --needed
|
|
systemctl enable sddm.service -f
|
|
fi
|
|
|
|
echo
|
|
echo "--->> End snigdhaos-fixes <<---"
|
|
echo |