mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-16 07:47:22 +01:00
0b0b466705
The code in menubar.icon_theme naively implements the algorithm from the base dir specification. This is a problem: On this system, /usr/share/icons/{Adwaita,hicolor}/index.theme list 91, respectively 649 subdirectories. Since we check for three file extensions (png, svg, xpm), this means that a failing icon lookup for the Adwaita theme checks for (91+649)*3 = 2220 files (in practice it might be a bit better since the directories have specific meanings, but still). That's insane. Since we only use this code for looking up category icons anyway, just deprecate this mess. Category icons are now looked up in the same way that icons for individual applications are looked up. Since menubar.init does not require("menubar.icon_theme"), this means that menubar.icon_theme is no longer actually loaded. That's bad. (Hopefully) Fixes: https://github.com/awesomeWM/awesome/issues/1496 Signed-off-by: Uli Schlachter <psychon@znc.in> |
||
---|---|---|
.. | ||
icon_theme.lua | ||
index_theme.lua | ||
init.lua | ||
menu_gen.lua | ||
utils.lua |