Skip to content

Commit

Permalink
- Invalidate the cache when -i is specified and the Icon key does…
Browse files Browse the repository at this point in the history
… not exist.
  • Loading branch information
trizen committed Jan 20, 2020
1 parent 621e2e5 commit 7cf2041
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions obmenu-generator
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,10 @@ foreach my $file ($desk_obj->get_desktop_files) {
my $mtime = (stat $file)[9];
my $cache_ok = (%info and $info{__MTIME__} == $mtime);

if ($with_icons and $cache_ok and not exists $info{Icon}) {
$cache_ok = 0;
}

if (not $cache_ok) {

my $entry = $desk_obj->parse_desktop_file($file) // do {
Expand Down

0 comments on commit 7cf2041

Please sign in to comment.