aboutsummaryrefslogtreecommitdiffstats
path: root/prefdm
diff options
context:
space:
mode:
Diffstat (limited to 'prefdm')
-rwxr-xr-xprefdm9
1 files changed, 8 insertions, 1 deletions
diff --git a/prefdm b/prefdm
index 9654ea0f..fba4858c 100755
--- a/prefdm
+++ b/prefdm
@@ -41,4 +41,11 @@ fi
if [ -n "$preferred" ] && which $preferred >/dev/null 2>&1; then
exec `which $preferred` $*
fi
-exit 1
+if which gdm >/dev/null 2>&1; then
+ exec `which gdm` $*
+elif which kdm >/dev/null 2>&1; then
+ exec `which kdm` $*
+elif which xdm >/dev/null 2>&1; then
+ exec `which xdm` $*
+fi
+fexit 1