determining icon theme

Matthias Clasen mclasen at redhat.com
Sat Jan 5 07:53:43 PST 2008


On Fri, 2008-01-04 at 09:17 -0800, Michael Brewer-Davis wrote:
> I apologize if this is a silly question, but...
> 
> Is there a cross-dm way of determining the current icon theme?  The icon 
> theme and naming specifications talk about searching relative to the 
> current theme, but I can't seem to determine (from a shell or in C, say) 
> what the current theme is.
> 
> My end goal: I'm attempting to use themed icons within my program (which 
> is mostly Java, actually).  I haven't found any tidy ways of grabbing an 
> icon in the current theme for a given file extension or mime type.
> 

The icon theme name should be available as an XSetting, if your desktop
is running an X settings manager. See 

http://standards.freedesktop.org/xsettings-spec/xsettings-spec-0.5.html

for the mechanism, and

http://www.freedesktop.org/wiki/Specifications/XSettingsRegistry

for registered settings.



More information about the xdg mailing list