aboutsummaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rwxr-xr-x[-rw-r--r--]sbin/chksession10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/chksession b/sbin/chksession
index 8afb6f9..108bc9b 100644..100755
--- a/sbin/chksession
+++ b/sbin/chksession
@@ -21,7 +21,7 @@ Usage: $0 [OPTION]...
-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/
+ Default is /usr/share/xsessions/
-h, --help: Produce this help.
@@ -40,9 +40,9 @@ sub parse_file { # parse a session descriptor file
my ($fn) = @_;
my $n;
local $_ = cat($fn);
- ($n = $1) =~ s| ||g if /^NAME=(.*)/m;
- $e = $1 if /^EXEC=(.*)/m;
- if (-x $e) { push @lf, $n; ($order{$n}) = $fn =~ m/(^[0-9][0-9])/; }
+ ($n = $1) =~ s| ||g if /^Name=(.*)/m;
+ push @lf, $n;
+ ($order{$n}) = $fn =~ m/(^[0-9][0-9])/;
}
usage(1)
@@ -69,7 +69,7 @@ while ($ARGV[0] =~ /^--/ || $ARGV[0] =~ /^-/) {
}
# Parse all relevant files in session directory $dir
-$dir = $test ? './wmsession.d/' : '/etc/X11/wmsession.d/' unless $dir;
+$dir = $test ? './xsessions/' : '/usr/share/xsessions/' unless $dir;
chdir $dir;
for (<*>) {
next if /.*~/;