I'd like to have support for the xdg icon theme specification so you only have to set a theme name and not twenty directories. Maybe allow one directory to be searched before the icon theme where you can put your own icons if needed.
http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#icon_lookup
Perhaps, you can find some useful code in here
jgmenu also supports reading icon theme from xsettings with fallback to GTK config files.
My icon_path
configuration field is currently over 2000 chars long, while it could boil down to less than 20 chars. This is insane.
Current implementations of this are either unmaintained, lack scaling support or are not a common library/package. I'll probably write a fresh one for this algorithm. It'll probably give me some experience in libraries.
Thanks for mentioning tint2. On the first glance, the code for the icon theme looks quite neat, too!
https://gitlab.com/o9000/tint2/blob/master/src/launcher/icon-theme-common.c
Most helpful comment
My
icon_path
configuration field is currently over 2000 chars long, while it could boil down to less than 20 chars. This is insane.Current implementations of this are either unmaintained, lack scaling support or are not a common library/package. I'll probably write a fresh one for this algorithm. It'll probably give me some experience in libraries.