Quoting jcsl
El Viernes, 8 de agosto de 2014 22:46:24 Yamaban escribió:
On Fri, 8 Aug 2014 22:25, jcsl
wrote: Hi.
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?
Greetings.
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.
- Yamaban.
Hi.
Thanks. I think it is safe to assume that gnome-icon-theme is installed. I cannot recall any desktop that doesn't install it by default.
BEWARE: With GNOME 3.14.0, the 'gnome-icon-theme' package will disappear! This was all merged into adwaita-icon-theme. IF your application is based on GTK3 (and will be built with GTK 3.13.x) then you don't have to worry for that: adwaita-icon-theme is the de-factory GNOME Upstream icon theme which 'each GTK developer is allowed to assume its presence' (as a consequence it is 'required' by libgtk-3-0 with the upcoming GNOME 3.14). What I basically want to say: do NOT add BuildRequired / Requires to gnome-icon-theme (or let me know, so I can branch it into GNOME:Next, ensuring that when we push GNOME 3.14 to Factory, this switch is taken care of as well). Best regards, Dominique -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org