aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xprefdm16
1 files changed, 8 insertions, 8 deletions
diff --git a/prefdm b/prefdm
index 63fb39e3..b4d64246 100755
--- a/prefdm
+++ b/prefdm
@@ -6,31 +6,31 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
[ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
# Run preferred X display manager
-quit_arg=
preferred=
+splash_quit_command=""
if [ -f /etc/sysconfig/desktop ]; then
. /etc/sysconfig/desktop
if [ "$DISPLAYMANAGER" = GNOME ]; then
preferred=/usr/sbin/gdm
- quit_arg="--retain-splash"
elif [ "$DISPLAYMANAGER" = KDE ]; then
preferred=/usr/bin/kdm
- quit_arg="--retain-splash"
+
+ # KDM supports "old-style" transition
+ splash_quit_command="plymouth quit --retain-splash"
elif [ "$DISPLAYMANAGER" = WDM ]; then
preferred=/usr/bin/wdm
+ splash_quit_command="plymouth quit"
elif [ "$DISPLAYMANAGER" = XDM ]; then
preferred=/usr/bin/xdm
+ splash_quit_command="plymouth quit"
elif [ -n "$DISPLAYMANAGER" ]; then
preferred=$DISPLAYMANAGER
- else
- quit_arg="--retain-splash"
+ splash_quit_command="plymouth quit"
fi
-else
- quit_arg="--retain-splash"
fi
# shut down boot splash
-/usr/bin/plymouth quit $quit_arg
+$splash_quit_command
shopt -s execfail