openshot.developers team mailing list archive
-
openshot.developers team
-
Mailing list archive
-
Message #00152
Determining system's pixmap path
>From my initial exploration it looks as if this is governed by the Free
Desktop Icon Theme specification:
http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#directory_layout
"Icons and themes are looked for in a set of directories. By default,
apps should look in $HOME/.icons (for backwards compatibility), in
$XDG_DATA_DIRS/icons and in /usr/share/pixmaps (in that order)."
There's more to read at the link.
I think therefore it'll cover all bases to check the environment for
XDG_DATA_DIRS and if it is defined check "XDG_DATA_DIRS/icons/" for the
named icon. If not, use the default "/usr/share/pixmaps/".
I bet there's some higher level service to call on for this somewhere
but I'm not sure where to look right now - gtk maybe?
Follow ups