Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

Commit

Permalink
fixed exception when icon doesn't exists and prevents menu to be shown
Browse files Browse the repository at this point in the history
  • Loading branch information
Fei Wong Reed committed Sep 25, 2010
1 parent 04e94a8 commit b32dc5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions freedesktop/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ function parse_desktop_file(arg)
-- Look up for a icon.
if program.Icon then
program.icon_path = lookup_icon({ icon = program.Icon, icon_sizes = (arg.icon_sizes or all_icon_sizes) })
if program.icon_path ~= nil and not file_exists(program.icon_path) then
program.icon_path = nil
end
end

-- Split categories into a table.
Expand Down

0 comments on commit b32dc5a

Please sign in to comment.