From 75341d9e38ebc5385ab8aa72b6c09395510080eb Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 12 Oct 2015 00:29:18 +0200 Subject: [PATCH] menubar.menu_gen.generate: do not call lookup_icon again `menubar.utils.lookup_icon` gets called via `menubar.utils.parse` already. --- lib/menubar/menu_gen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/menubar/menu_gen.lua b/lib/menubar/menu_gen.lua index 630cfa111..86fda43d4 100644 --- a/lib/menubar/menu_gen.lua +++ b/lib/menubar/menu_gen.lua @@ -112,7 +112,7 @@ function menu_gen.generate() if target_category then local name = trim(program.Name) or "" local cmdline = trim(program.cmdline) or "" - local icon = utils.lookup_icon(trim(program.icon_path)) or nil + local icon = program.icon_path or nil table.insert(result, { name = name, cmdline = cmdline, icon = icon,