findFallbackIcon

Find fallback icon outside of icon themes. The first found is returned.

string
findFallbackIcon
(
BaseDirs
Exts
)
(
string iconName
,,)

Examples

assert(findFallbackIcon("pidgin", ["test"], defaultIconExtensions) == buildPath("test", "pidgin.png"));
assert(findFallbackIcon("nonexistent", ["test"], defaultIconExtensions).empty);

See Also

lookupFallbackIcon, icontheme.paths.baseIconDirs

Meta