summaryrefslogtreecommitdiff
path: root/graphical_start.sh
blob: a63bc5fbab067e65e93e5f6ce1ec79fb41314bfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash


if [ -n "$(equo match --installed gnome-base/gdm -qv)" ]; then
	systemctl start gdm
elif [ -n "$(equo match --installed lxde-base/lxdm -qv)" ]; then
	systemctl start lxdm
elif [ -n "$(equo match --installed x11-misc/lightdm-base -qv)" ]; then
	systemctl start lightdm
elif [ -n "$(equo match --installed kde-base/kdm -qv)" ]; then
	systemctl start kdm
elif [ -n "$(equo match --installed x11-misc/slim -qv)" ]; then
	systemctl start slim
else
	systemctl start xdm
fi