| line |
true |
false |
branch |
|
37
|
0 |
1 |
defined $opt{'terminal'} ? : |
|
295
|
0 |
1 |
$data{'terminalize'} ? : |
|
304
|
0 |
1 |
if ($data{'case_insensitive_cats'}) |
|
315
|
0 |
13 |
if ($data{'case_insensitive_cats'}) |
|
330
|
0 |
0 |
unless opendir my $dir_h, $dir |
|
340
|
0 |
0 |
if (substr($file, -8) eq ".desktop") |
|
341
|
0 |
0 |
if ($is_local or not exists $table{$file}) |
|
348
|
0 |
0 |
wantarray ? : |
|
358
|
0 |
2 |
if (defined $self->{'skip_filename_re'}) |
|
359
|
0 |
0 |
if substr($desktop_file, rindex($desktop_file, "/") + 1) =~ /$self->{'skip_filename_re'}/u |
|
363
|
0 |
2 |
unless sysopen my $desktop_fh, $desktop_file, 0 |
|
367
|
2 |
0 |
if ((my $index = index($file, "]\n", index($file, "[Desktop Entry]") + 15)) != -1) |
|
375
|
0 |
2 |
if (exists $info{'NoDisplay'}) |
|
376
|
0 |
0 |
if exists $TRUE_VALUES{$info{'NoDisplay'}} |
|
380
|
0 |
2 |
if (exists $info{'Hidden'}) |
|
381
|
0 |
0 |
if exists $TRUE_VALUES{$info{'Hidden'}} |
|
391
|
0 |
2 |
if (defined $self->{'skip_entry'} and ref $self->{'skip_entry'} eq "ARRAY") |
|
393
|
0 |
0 |
if (exists $info{$pair_ref->{'key'}} and $info{$pair_ref->{'key'}} =~ /$pair_ref->{'re'}/u) |
|
400
|
0 |
2 |
if (defined $self->{'substitutions'} and ref $self->{'substitutions'} eq "ARRAY") |
|
402
|
0 |
0 |
if (exists $info{$pair_ref->{'key'}}) |
|
403
|
0 |
0 |
if ($pair_ref->{'global'}) { } |
|
417
|
0 |
2 |
if ($self->{'case_insensitive_cats'}) |
|
425
|
0 |
2 |
unless (@cats) |
|
426
|
0 |
0 |
if ($self->{'keep_unknown_categories'}) { } |
|
441
|
4 |
4 |
if (exists $self->{'_subcategories'}{$cat}) |
|
449
|
2 |
0 |
if index($info{'Exec'}, " %") != -1 |
|
452
|
0 |
0 |
if ($self->{'terminalize'} and defined $info{'Terminal'} and exists $TRUE_VALUES{$info{'Terminal'}}) |
|
459
|
2 |
0 |
if (exists $info{'Icon'}) |
|
463
|
0 |
2 |
if (substr($icon, 0, 1) eq "/") |
|
464
|
0 |
0 |
if (-f $icon) { } |
|
473
|
2 |
0 |
unless ($abs) |
|
481
|
1 |
1 |
wantarray ? : |
|
503
|
0 |
0 |
wantarray ? : |