3 releases
0.1.3 | Feb 2, 2024 |
---|---|
0.1.2 | Oct 29, 2023 |
0.1.1 |
|
0.1.0 | Oct 10, 2022 |
#10 in #icon
148 downloads per month
Used in yofi
21KB
498 lines
freedesktop-icon-lookup
A library for searching a path with given app name based on Freedesktop icon lookup spec. The implementation eagarly scans all directories in advance so multiple lookups are executed way faster and without real filesystem scan.
Feature list
- Multiple themes support, including inherited;
- Advanced lookup among all found
Example
use freedesktop_icon_lookup::{Cache, LookupParam};
let theme = "Adwaita";
let mut cache = Cache::new()?;
cache.load(theme)?;
let _: Option<PathBuf> = cache.lookup("firefox", theme);
Alternatives
freedesktop-icons might be a better option if you only need a few icons to search.
Dependencies
~0.3–0.8MB
~19K SLoC