aboutsummaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-08-13 01:40:16 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-08-13 02:02:37 +0200
commit731b154e46b7b22a835e482fdc0e34ae01a46eb6 (patch)
tree3c1a9ad4b6ef04c26a7a9c3e6af5aa574d9338ed /sbin
parent0a47f2c60d821432a22c3c4eb0df1022bc92d32a (diff)
downloadcommon-data-731b154e46b7b22a835e482fdc0e34ae01a46eb6.tar
common-data-731b154e46b7b22a835e482fdc0e34ae01a46eb6.tar.gz
common-data-731b154e46b7b22a835e482fdc0e34ae01a46eb6.tar.bz2
common-data-731b154e46b7b22a835e482fdc0e34ae01a46eb6.tar.xz
common-data-731b154e46b7b22a835e482fdc0e34ae01a46eb6.zip
cleanup useless stuff after previous commit
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)