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

setup_displaymanager() {
        # determine what is the login manager
        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
}