aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xprefdm7
1 files changed, 4 insertions, 3 deletions
diff --git a/prefdm b/prefdm
index 8e9e9918..5ff5fd5c 100755
--- a/prefdm
+++ b/prefdm
@@ -19,11 +19,12 @@ fi
preferred=
if [ -f /etc/sysconfig/desktop ]; then
. /etc/sysconfig/desktop
- [ -n "$DISPLAYMANAGER" ] && DESKTOP=$DISPLAYMANAGER
- if [ "$DESKTOP" = GNOME ]; then
+ if [ "$DISPLAYMANAGER" = GNOME ]; then
preferred=gdm
- elif [ "$DESKTOP" = KDE -o "$DESKTOP" = KDE1 -o "$DESKTOP" = KDE2 ]; then
+ elif [ "$DISPLAYMANAGER" = KDE ]; then
preferred=kdm
+ elif [ "$DISPLAYMANAGER" = XDM ]; then
+ preferred=xdm
fi
fi