From 7cbeb4f30d915d8d97914d42f64a13111449949a Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Mon, 14 Aug 2006 04:57:43 +0000 Subject: debian package build fixes --- sesman/startwm.sh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'sesman/startwm.sh') diff --git a/sesman/startwm.sh b/sesman/startwm.sh index 459b4dc9..3445c494 100755 --- a/sesman/startwm.sh +++ b/sesman/startwm.sh @@ -10,20 +10,23 @@ fi if [ -d /opt/kde/bin ]; then export PATH=/opt/kde/bin:$PATH fi -if [ "'which startkde'" != "" ]; then +which startkde +if [ $? -eq 0 ]; then startkde exit 0 fi -if [ "'which kde'" != "" ]; then +which kde +if [ $? -eq 0 ]; then kde exit 0 fi # gnome -#if [ "'which gnome-session'" != "" ]; then -# gnome-session -# exit 0 -#fi +which gnome-session +if [ $? -eq 0 ]; then + gnome-session + exit 0 +fi # blackbox #if [ "'which blackbox'" != "" ]; then @@ -38,7 +41,8 @@ fi #fi # fall back on xterm -if [ "'which xterm'" != "" ]; then +which xterm +if [ $? -eq 0 ]; then xterm exit 0 fi -- cgit v1.2.1