[opensuse-factory] How to use use icons from some theme without uploading it?
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. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Fri, 8 Aug 2014 22:25, jcsl
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. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
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. Greetings. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
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
El Viernes, 8 de agosto de 2014 21:41:55 Dominique Leuenberger a.k.a. Dimstar escribió:
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
Hi. I wasn't aware about the change in the gnome-icon-theme, thanks for pointing that out. The application is ObKey, and old PyGTK app to set key bindings for Openbox. I'm packaging it for LXDE and, given that LXDE is GTK2, I assumed that gnome-icon-theme would be present (up to now it has been always installed by default). LXDE will use Adwaita in 13.2 because currently it uses Clearlooks that is GTK2 only and GTK3 apps look ugly, at least to me. But IIRC GNOME 3.14 will replace Raleigh with Adwaita and the problem might disappear. Greetings. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Sat, 9 Aug 2014 00:19, jcsl
El Viernes, 8 de agosto de 2014 21:41:55 Dominique Leuenberger a.k.a. Dimstar escribió:
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. <snip>
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
Hi.
I wasn't aware about the change in the gnome-icon-theme, thanks for pointing that out. The application is ObKey, and old PyGTK app to set key bindings for Openbox. I'm packaging it for LXDE and, given that LXDE is GTK2, I assumed that gnome-icon-theme would be present (up to now it has been always installed by default). LXDE will use Adwaita in 13.2 because currently it uses Clearlooks that is GTK2 only and GTK3 apps look ugly, at least to me. But IIRC GNOME 3.14 will replace Raleigh with Adwaita and the problem might disappear.
Greetings. -- To unsubscribe, e-mail:
Hmmm, an other way would be to put the wanted icon in /usr/share/pixmaps/ and be free of any theme requirements. There where some plans within LXDE to switch from GTK2 to QT5, so keep that in mind / any eye on it. Thank you for the invested time, I like LXDE. - Yamaban.
On Saturday, August 09, 2014 12:39:32 AM Yamaban wrote:
On Sat, 9 Aug 2014 00:19, jcsl
wrote: El Viernes, 8 de agosto de 2014 21:41:55 Dominique Leuenberger a.k.a. Dimstar escribió:
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.
<snip>
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
Hi.
I wasn't aware about the change in the gnome-icon-theme, thanks for pointing that out. The application is ObKey, and old PyGTK app to set key bindings for Openbox. I'm packaging it for LXDE and, given that LXDE is GTK2, I assumed that gnome-icon-theme would be present (up to now it has been always installed by default). LXDE will use Adwaita in 13.2 because currently it uses Clearlooks that is GTK2 only and GTK3 apps look ugly, at least to me. But IIRC GNOME 3.14 will replace Raleigh with Adwaita and the problem might disappear. Greetings. -- To unsubscribe, e-mail: Hmmm, an other way would be to put the wanted icon in /usr/share/pixmaps/ and be free of any theme requirements.
There where some plans within LXDE to switch from GTK2 to QT5, so keep that in mind / any eye on it.
Thank you for the invested time, I like LXDE.
- Yamaban.
LXDE is not going away as a GTK2 based DE, at least not in the near future. LXQt is the Qt4/5 based version of LXDE, and it is being developed concurrently. I don't believe you will see a GTK3 based version of LXDE though.
Hi.
Hmmm, an other way would be to put the wanted icon in /usr/share/pixmaps/ and be free of any theme requirements.
That's precisely what I wanted to avoid, but after this talk it seems that it is the safest election. In this case, is there a recommended icon size? The bigger the better? Are .svg icons allowed here?
There where some plans within LXDE to switch from GTK2 to QT5, so keep that in mind / any eye on it.
I'm aware of that but it's not a problem, the two versions are developed independently the one from the other. They only share some packages like libfm, menu-cache and may be one or two more. What is not going to happen is a migration to GTK3. From their wiki: "Plans to migrate to GTK3+? There were some plans of migration to GTK3, some components of LXDE were ported. Later (in year 2013) the GTK3 development disappointed all the developers (GTK3 appeared to be much more buggy and bloated than GTK2) therefore another toolkit was chosen for usage after GTK2 lifetime end - Qt."
Thank you for the invested time, I like LXDE.
- Yamaban.
You're welcome, I thought I was the only one who liked LXDE, XD. Greetings. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
* 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
participants (5)
-
Dominique Leuenberger a.k.a. Dimstar
-
Guido Berhoerster
-
jcsl
-
Shawn W Dunn
-
Yamaban