#linux #icons #freedesktop

linicon-theme

Get the user’s current icon the on Linux

4 stable releases

1.1.0 May 7, 2021
1.0.2 Nov 8, 2020
1.0.1 Aug 11, 2020
1.0.0 Aug 10, 2020

#4 in #freedesktop

Download history 7/week @ 2021-04-06 9/week @ 2021-04-13 19/week @ 2021-04-20 4/week @ 2021-04-27 31/week @ 2021-05-04 8/week @ 2021-05-11 7/week @ 2021-05-18 7/week @ 2021-05-25 7/week @ 2021-06-01 8/week @ 2021-06-08 5/week @ 2021-06-15 3/week @ 2021-06-22 3/week @ 2021-06-29 6/week @ 2021-07-06 6/week @ 2021-07-13 7/week @ 2021-07-20

56 downloads per month
Used in linicon

MPL-2.0 license

47KB
950 lines

Linicon Theme

crates.io docs.rs Minimum Supported Rust Version

Get the user's current icon theme on Linux

There isn't a unified standard for getting the current icon theme on Linux. So linicon-theme attempts to check many places theme information might be stored. See the docs for more details.

Example

use linicon_theme::get_icon_theme;

println!("Your current icon theme is: {}", get_icon_theme().unwrap());

Contributing

Please send any and all patches, bugs, and questions to my public inbox ~zethra/public-inbox@lists.sr.ht or submit a ticket to the bug tracker if you feel so inclined todo.sr.ht/~zethra/linicon.


lib.rs:

Get the user's current icon theme on Linux

There isn't a unified standard for getting the current icon theme on Linux. So linicon-theme attempts to check many places theme information might be stored. See get_icon_theme for more details.

Example

use linicon_theme::get_icon_theme;

println!("Your current icon theme is: {}", get_icon_theme().unwrap());

Dependencies

~3MB
~58K SLoC