[opensuse-packaging] how to include icons from an alternative theme?
Hi, Recently I'm updating our LXDE, and I met a problem Their packages used a lot of icons from nuoveXT2-icon-theme in their desktop files. So I always get "Error Icon in /usr/share/applications/pcmanfm-desktop-pref.desktop not found "user-desktop". Usually if it's an icon in hicolor-icon-theme, you add a BuildRequires: hicolor-icon-theme Then it will be automatically resolved. But I added BuildRequires: nuoveXT2-icon-theme And nothing happened. Anyone know how to workaround this? Greetings Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Dnia niedziela, 8 września 2013 20:19:32 Marguerite Su pisze:
Hi,
Recently I'm updating our LXDE, and I met a problem
Their packages used a lot of icons from nuoveXT2-icon-theme in their desktop files.
So I always get "Error Icon in /usr/share/applications/pcmanfm-desktop-pref.desktop not found "user-desktop".
Usually if it's an icon in hicolor-icon-theme, you add a
BuildRequires: hicolor-icon-theme
Then it will be automatically resolved.
But I added
BuildRequires: nuoveXT2-icon-theme
And nothing happened.
What did you expect to happen? Chris -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Sun, Sep 8, 2013 at 8:45 PM, Křištof Želechovski
What did you expect to happen?
Hi, Chris, I wanna know a way that I do something in the spec file, then Icon=user-desktop will automatically recognize /usr/share/icons/nouveXT2/*/places/user-desktop.png in the build VM's /usr ( that's how BuildRequires works) as its icon, thus resolve the icon not found error, while without manually installing an user-desktop icon in pcmanfm's spec file (goes to BUILDROOT) because there're such icons in nouveXT2-icon-theme package. Nowadays freedesktop icon specification says: The lookup is done first in the current theme, and then recursively in each of the current theme's parents, and finally in the default theme called "hicolor" http://standards.freedesktop.org/icon-theme-spec/latest/ar01s05.html Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Sun, 8 Sep 2013 15:22, Marguerite Su wrote:
On Sun, Sep 8, 2013 at 8:45 PM, Křištof Želechovski
wrote: What did you expect to happen?
Hi, Chris,
I wanna know a way that I do something in the spec file,
then
Icon=user-desktop
will automatically recognize /usr/share/icons/nouveXT2/*/places/user-desktop.png
in the build VM's /usr ( that's how BuildRequires works)
as its icon, thus resolve the icon not found error,
while without manually installing an user-desktop icon in pcmanfm's spec file (goes to BUILDROOT)
because there're such icons in nouveXT2-icon-theme package.
Nowadays freedesktop icon specification says:
The lookup is done first in the current theme, and then recursively in each of the current theme's parents, and finally in the default theme called "hicolor"
http://standards.freedesktop.org/icon-theme-spec/latest/ar01s05.html
Attention: the hicolor theme does NOT contain the places/user-desktop.{png,svg} file Maybe that is what kills the dog here? - Yamaban
On Sun, Sep 8, 2013 at 9:39 PM, Yamaban
Attention: the hicolor theme does NOT contain the places/user-desktop.{png,svg} file
Maybe that is what kills the dog here?
Hi, Yamaban, Yes, I was aware of that. That's exactly the reason why the dog get killed :D But I wanna know if there's a workaround, eg: appending nouveXT2 to the lookup. Because at least for now, there're three desktop files referring to three icons inside nouveXT2. If I extract them from nouveXT2 and put them into hicolor (This may be the traditional way), then on a LXDE machine...icons will be redundant. Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Son, 2013-09-08 at 21:22 +0800, Marguerite Su wrote:
On Sun, Sep 8, 2013 at 8:45 PM, Křištof Želechovski
wrote: What did you expect to happen?
Hi, Chris,
I wanna know a way that I do something in the spec file,
then
Icon=user-desktop
will automatically recognize /usr/share/icons/nouveXT2/*/places/user-desktop.png
You can't. And this would only make sense if nouveaXT2 is a fallback
theme used by LXDE in any case... which it is not.
So in all other cases, when a user does not have this icon them
CONFIGURE (does not even matter if installed), the user would simply not
get a nice icon and it would fall back to a 'fallback'/'generic' icon in
the hicolor theme.
GNOME and KDE both have a fallback to their own Icone
set /usr/share/icons/gnome/...).
For gnome apps for example, it is only allowed to refer icons in the
gnome icon set if OnlyShowIn=GNOME is set, to ensure that KDE users will
not be bitten by that.
So you see, there is a clear reason for the check... it does not really
matter in which theme an icon can be found, unless you can 100%
guarantee that the user will USE this theme.
Dominique
--
Dimstar / Dominique Leuenberger
Hi, Dimstar,
On Sun, Sep 8, 2013 at 9:47 PM, Dimstar / Dominique Leuenberger
You can't. And this would only make sense if nouveaXT2 is a fallback theme used by LXDE in any case... which it is not.
Err...nouveXT2 is the only icon theme located under x11:lxde repo. and its source is actually lxde-icon-theme-%{version}.tar.bz2 which is provided by upstream and used by default. http://gnome-look.org/content/show.php/nuoveXT+2+fixed?content=116652 So I think nouveXT2 is the fallback theme.
GNOME and KDE both have a fallback to their own Icone set /usr/share/icons/gnome/...).
For gnome apps for example, it is only allowed to refer icons in the gnome icon set if OnlyShowIn=GNOME is set, to ensure that KDE users will not be bitten by that.
So you see, there is a clear reason for the check... it does not really matter in which theme an icon can be found, unless you can 100% guarantee that the user will USE this theme.
I can't 100% guarantee user will USE this theme, but I can 100% guarantee user will have this theme INSTALLed... So please teach me the fallback system used by gnome-icon-theme... I think upstream also want that way, but they still didn't get it implemented. I may help with that :D Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Dnia niedziela, 8 września 2013 21:22:42 Marguerite Su pisze:
On Sun, Sep 8, 2013 at 8:45 PM, Křištof Želechovski
wrote: What did you expect to happen?
Hi, Chris,
I wanna know a way that I do something in the spec file,
then
Icon=user-desktop
will automatically recognize /usr/share/icons/nouveXT2/*/places/user-desktop.png
in the build VM's /usr ( that's how BuildRequires works)
as its icon, thus resolve the icon not found error,
while without manually installing an user-desktop icon in pcmanfm's spec file (goes to BUILDROOT)
because there're such icons in nouveXT2-icon-theme package.
What is the default theme for use abuild? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Marguerite Su Sun, 08 Sep 2013 15:19:32 +0300:
Hi,
Recently I'm updating our LXDE, and I met a problem
Their packages used a lot of icons from nuoveXT2-icon-theme in their desktop files.
So I always get "Error Icon in /usr/share/applications/pcmanfm-desktop-pref.desktop not found "user-desktop".
Usually if it's an icon in hicolor-icon-theme, you add a
BuildRequires: hicolor-icon-theme
Then it will be automatically resolved.
But I added
BuildRequires: nuoveXT2-icon-theme
And nothing happened.
Anyone know how to workaround this?
Greetings
Marguerite
Hello. Sorry, no ideas except installing this icon with the package. Of course f.e. you can try to %exclude it in the %files section, but I am not sure that there will not be raised the same error. -- Dmitriy DA(P).DarkneSS Perlow / Linux x64 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (5)
-
Dimstar / Dominique Leuenberger
-
Dmitriy Perlow
-
Křištof Želechovski
-
Marguerite Su
-
Yamaban