#icons #linux #freedesktop

linicon-theme

Get the user's current icon the on Linux

5 stable releases

1.2.0 Feb 3, 2022
1.1.0 May 7, 2021
1.0.2 Nov 8, 2020
1.0.1 Aug 11, 2020
1.0.0 Aug 10, 2020

#910 in Unix APIs

Download history 86/week @ 2023-12-22 144/week @ 2023-12-29 103/week @ 2024-01-05 109/week @ 2024-01-12 223/week @ 2024-01-19 161/week @ 2024-01-26 85/week @ 2024-02-02 89/week @ 2024-02-09 96/week @ 2024-02-16 101/week @ 2024-02-23 107/week @ 2024-03-01 121/week @ 2024-03-08 88/week @ 2024-03-15 139/week @ 2024-03-22 105/week @ 2024-03-29 184/week @ 2024-04-05

530 downloads per month
Used in 3 crates

MPL-2.0 license

10KB
142 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

~3.5MB
~62K SLoC