[fpc-pascal] How to get path to current theme icons on linux?
Michael Van Canneyt
michael at freepascal.org
Mon Jan 9 23:30:34 CET 2012
On Mon, 9 Jan 2012, Krzysztof wrote:
> Hi,
>
> I need to load icon associated by file extension. On windows I done
> this by WinAPI function ExtractAssociatedIcon(). On linux is not so
> easy, because we have GNOME, KDE, XFCE, LXDE etc, but I noticed that
> icons are stored in this same place (like /home/[account]/.icons/ or
> /usr/share/icons), so there is a chance to locate it, but how can I
> get path to icons which user using currently? Exists any
> GetEnvironmentVariable or something like this?
Not to my knowledge.
You'll have to look in the settings files/directories of the GUI (GNOME/KDE/XFCE)
Michael.
More information about the fpc-pascal
mailing list