aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--mandrake_desk.spec5
-rw-r--r--sbin/chksession5
2 files changed, 9 insertions, 1 deletions
diff --git a/mandrake_desk.spec b/mandrake_desk.spec
index 491c6e2..9cc4b47 100644
--- a/mandrake_desk.spec
+++ b/mandrake_desk.spec
@@ -1,7 +1,7 @@
Summary: The Desktop configuration files for Mandrake Linux
Name: mandrake_desk
Version: 10.0
-Release: 10mdk
+Release: 11mdk
License: GPL
URL: http://www.mandrakelinux.com/
Group: System/Configuration/Other
@@ -143,6 +143,9 @@ rm -fr %buildroot
%changelog
+* Wed Aug 4 2004 Pixel <pixel@mandrakesoft.com> 10.0-11mdk
+- add "chksession -L" used by DrakX to configure ~/.dmrc
+
* Tue Mar 2 2004 Frederic Lepied <flepied@mandrakesoft.com> 10.0-10mdk
- in KDE session only pass the session name
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";
}