aboutsummaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-08-04 07:49:44 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-08-04 07:49:44 +0000
commit34773dbde807972ccc2996dca55a6bf72c5d9aa8 (patch)
tree501400319a391a98f3f217b40896e5d4470087f6 /sbin
parent5ab3ce63551d4f0aa411648836f69d628d8c6615 (diff)
downloadcommon-data-34773dbde807972ccc2996dca55a6bf72c5d9aa8.tar
common-data-34773dbde807972ccc2996dca55a6bf72c5d9aa8.tar.gz
common-data-34773dbde807972ccc2996dca55a6bf72c5d9aa8.tar.bz2
common-data-34773dbde807972ccc2996dca55a6bf72c5d9aa8.tar.xz
common-data-34773dbde807972ccc2996dca55a6bf72c5d9aa8.zip
add "chksession -L" used by DrakX to configure ~/.dmrc
Diffstat (limited to 'sbin')
-rw-r--r--sbin/chksession5
1 files changed, 5 insertions, 0 deletions
diff --git a/sbin/chksession b/sbin/chksession
index 9e4f0f3..2d5b86d 100644
--- a/sbin/chksession
+++ b/sbin/chksession
@@ -17,6 +17,7 @@ Usage: $0 [OPTION]...
-F --first: Print only first available entry.
-t, --test: Go in test mode.
-l, --list: List window-managers.
+ -L: List window-managers including the order number
-d=DIR, --dir=DIR: Specifies a directory of w-m configuration files.
Default is /etc/X11/wmsession.d/
-x=ENTRY, --xsession=ENTRY: Produce window-managers script of ENTRY.
@@ -86,6 +87,8 @@ while ($ARGV[0] =~ /^--/ || $ARGV[0] =~ /^-/) {
$gdm++;
} elsif (/^--list/ || /^-l/) {
$list++;
+ } elsif (/^-L/) {
+ $list_order++;
} elsif (/^--kdmsess/ || /^-k/) {
$kdm++;
} elsif (/^--test/ || /^-t/) {
@@ -151,5 +154,7 @@ if ($list) {
} else {
print "Default\n";
}
+} elsif ($list_order) {
+ print join(' ', map { "$_=$order{$_}" } @lf), "\n";
}