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:
parent
3af56b9b3f
commit
4f866801f7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue