aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/chksession
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/chksession')
-rwxr-xr-xsbin/chksession4
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/chksession b/sbin/chksession
index 108bc9b..f7b7c7c 100755
--- a/sbin/chksession
+++ b/sbin/chksession
@@ -71,9 +71,7 @@ while ($ARGV[0] =~ /^--/ || $ARGV[0] =~ /^-/) {
# Parse all relevant files in session directory $dir
$dir = $test ? './xsessions/' : '/usr/share/xsessions/' unless $dir;
chdir $dir;
-for (<*>) {
- next if /.*~/;
- next if /.*\.rpm(save|old)/;
+foreach (glob("*.desktop")) {
parse_file($_);
}