pop-os / freedesktop-desktop-entry

Rust crate for navigating Freedesktop desktop entries
Mozilla Public License 2.0
32 stars 17 forks source link

change the order of DefaultPath + Iter #33

Closed wiiznokes closed 4 weeks ago

wiiznokes commented 4 weeks ago

This pr remove the oddiness of the default_paths function and Iter, which were processing path in reverse order. I was causing problem in the default_paths function itself, but also in cosmic-applet (https://github.com/pop-os/cosmic-applets/blob/0b536349cb1a27b91e3ab0650931cd531f536ebd/cosmic-panel-button/src/main.rs#L157) .

Also, i added an helper function entries on Iter. Probably better than the previous from_paths function. And fixed the code in the README