--- nxnode.orig	2004-11-11 15:13:52.000000000 +0000
+++ nxnode	2004-11-16 19:59:27.121212037 +0000
@@ -125,6 +125,18 @@
 		unix-application)
 			STARTX=$(which $application)
 		;;
+		unix-default)
+			if [ -f /etc/sysconfig/desktop ]; then
+				. /etc/sysconfig/desktop
+				if [ "$DESKTOP" = "GNOME" ]; then
+					STARTX=$(which gnome-session)
+				elif [ "$DESKTOP" = "KDE" ]; then
+					STARTX=$(which startkde)
+				elif [ "$DESKTOP" = "WINDOWMAKER" ]; then
+					STARTX=$(which wmaker)
+				fi
+			fi
+		;;
 	esac
 	[ -n "$STARTX" ] || return
 

