forked from e16/e16
1
0
Fork 0

Fix menu generation issue.

Stop .desktop file processing when seeing a section other than [Desktop Entry].

Noted by Len E.
This commit is contained in:
Kim Woelders 2013-06-01 09:03:28 +02:00
parent 3af56b9b3f
commit 4f866801f7
1 changed files with 3 additions and 1 deletions

View File

@ -197,7 +197,9 @@ sub ProcessFile {
open(FI,$f) or return;
while (<FI>) {
s/\s+$//;
if (/^Name=(.*)$/) {
if (/^\[Desktop\s+(\w+)/) {
last if ($1 ne "Entry");
} elsif (/^Name=(.*)$/) {
$Name = $1;
} elsif ($loc1 && /^Name\[$loc1\]=(.*)$/) {
$Nam1 = $1;