* Yamaban
On Fri, 8 Aug 2014 22:25, jcsl
wrote: If I set an icon in a .desktop file I have to upload it. For example, I want to use preferences-desktop-keyboard-shortcuts from gnome's icon theme. I think that this doesn't have to be necessary and I'm doing something wrong. Am I right? What is the proper way to do this?
If you want to use a non-standard icon, i.e. an icon which is not referenced in http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.ht... and thus guaranteed to be in any conforming theme, then you have to provide your own copy of that icon/the icons under a unique name into the hicolor theme or /usr/share/pixmaps.
In your .spec file use a line similar to: [code] Build-Requires: Gnome-Icon-Theme [/code]
Replace "Gnome-Icon-Theme" with the package name the icon is from.
Thus your Package can build cleanly, without having a fixed requirement during runtime.
But! It could happen that the theme the icon is from, is not installed during package install or usage.
Icons from "hicolor" are usually there, and thus save to use.
Otherwise, drop the "Build-" prefix, and have a fixed requirement to the theme.
That is completely wrong and will not work. Users are free to choose a different theme and then will not see an icon at all. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org