aboutsummaryrefslogtreecommitdiffstats
path: root/prefdm
diff options
context:
space:
mode:
Diffstat (limited to 'prefdm')
-rwxr-xr-xprefdm1
1 files changed, 1 insertions, 0 deletions
diff --git a/prefdm b/prefdm
index d6f2681f..bb5ff68b 100755
--- a/prefdm
+++ b/prefdm
@@ -19,6 +19,7 @@ fi
preferred=
if [ -f /etc/sysconfig/desktop ]; then
source /etc/sysconfig/desktop >/dev/null 2>&1
+ [ -n "$DISPLAYMANAGER" ] && DESKTOP=$DISPLAYMANAGER
if [ "$DESKTOP" = GNOME ]; then
preferred=gdm
elif [ "$DESKTOP" = KDE -o "$DESKTOP" = KDE1 ]; then