aboutsummaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/chksession7
1 files changed, 1 insertions, 6 deletions
diff --git a/sbin/chksession b/sbin/chksession
index d6ed385..8afb6f9 100644
--- a/sbin/chksession
+++ b/sbin/chksession
@@ -42,12 +42,7 @@ sub parse_file { # parse a session descriptor file
local $_ = cat($fn);
($n = $1) =~ s| ||g if /^NAME=(.*)/m;
$e = $1 if /^EXEC=(.*)/m;
- my $dn = $1 if /^DESKTOPNAMES=(.*)/m;
-# $d = $1 if /^DESC=(.*)/m;
-# $i = $1 if /^ICON=(.*)/m;
- $s = $1 while /SCRIPT:(.*?)$/gs; chomp $s;
- if (-x $e) { $script{$n} = $s; $exe{$n} = $e; $desktopnames{$n} = $dn; push @lf, $n; ($order{$n}) = $fn =~ m/(^[0-9][0-9])/; }
-# if (-x $e) { $script{$n} = $s; $exec{$n} = $e; $desc{$n} = $d; $icon{$n} = $i; push @lf, $n; }
+ if (-x $e) { push @lf, $n; ($order{$n}) = $fn =~ m/(^[0-9][0-9])/; }
}
usage(1)