aboutsummaryrefslogtreecommitdiffstats
path: root/prefdm
diff options
context:
space:
mode:
Diffstat (limited to 'prefdm')
-rwxr-xr-xprefdm10
1 files changed, 5 insertions, 5 deletions
diff --git a/prefdm b/prefdm
index b2a5c3f1..156b14e7 100755
--- a/prefdm
+++ b/prefdm
@@ -8,7 +8,7 @@ if [ -x /usr/bin/rhgb-client ]; then
fi
# We need to source this so that the login screens get translated
-[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
+[ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
# Run preferred X display manager
preferred=
@@ -27,12 +27,12 @@ fi
shopt -s execfail
-[ -n "$preferred" ] && exec $preferred "$@" >/dev/null 2>&1
+[ -n "$preferred" ] && exec $preferred "$@" >/dev/null 2>&1 </dev/null
# Fallbacks, in order
-exec gdm "$@" >/dev/null 2>&1
-exec kdm "$@" >/dev/null 2>&1
-exec xdm "$@" >/dev/null 2>&1
+exec gdm "$@" >/dev/null 2>&1 </dev/null
+exec kdm "$@" >/dev/null 2>&1 </dev/null
+exec xdm "$@" >/dev/null 2>&1 </dev/null
# catch all exit error
exit 1