pub fn get_system_theme() -> Option<String>Expand description
Get the user’s current icon theme
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. The following places are checked in order.
$XDG_CONFIG_HOME/kdeglobals-> Icons -> Theme- Output of
gsettings get org.gnome.desktop.interface icon-theme $XDG_CONFIG_HOME/gtk-3.0/settings.ini-> Settings -> gtk-icon-theme-name$HOME/.gtkrc-2.0-> gtk-icon-theme-name$XDG_CONFIG_HOME/theme.conf-> Settings -> icon-theme-name
Returns None if the theme can’t be found for some reason.