aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/chksession
diff options
context:
space:
mode:
authorChmouel Boudjnah <chmouel@mandriva.org>2000-05-06 20:55:26 +0000
committerChmouel Boudjnah <chmouel@mandriva.org>2000-05-06 20:55:26 +0000
commitdfa48caee7add65ee252e60dd2eba4e8a4de077e (patch)
tree7e752c8169def0d33ee92930b4030575721447cd /sbin/chksession
parent718bb8f220bda28a974de2da0cce721216d440ae (diff)
downloadcommon-data-dfa48caee7add65ee252e60dd2eba4e8a4de077e.tar
common-data-dfa48caee7add65ee252e60dd2eba4e8a4de077e.tar.gz
common-data-dfa48caee7add65ee252e60dd2eba4e8a4de077e.tar.bz2
common-data-dfa48caee7add65ee252e60dd2eba4e8a4de077e.tar.xz
common-data-dfa48caee7add65ee252e60dd2eba4e8a4de077e.zip
* sbin/chksession: if icewm is not here by default launch twm.
Diffstat (limited to 'sbin/chksession')
-rw-r--r--sbin/chksession8
1 files changed, 7 insertions, 1 deletions
diff --git a/sbin/chksession b/sbin/chksession
index d0bec64..db3bdd4 100644
--- a/sbin/chksession
+++ b/sbin/chksession
@@ -123,7 +123,13 @@ if ($xsession) {
print $script{$xsession}
} else {
print "xterm -geometry 100x25+0+0 &\n";
- -x '/usr/X11R6/bin/icewm' ? print "icewm\n" : print "xterm -geometry 67x14+384+446\n";
+ if ( -x '/usr/X11R6/bin/icewm' ) {
+ print "icewm\n";
+ } elsif ( -x '/usr/X11R6/bin/twm' ) {
+ print "twm\n";
+ } else {
+ print "xterm -geometry 67x14+384+446\n";
+ }
}
exit (0);
}