After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 509718 - Absolute icon path in gucharmap desktop file breaks themeability
Absolute icon path in gucharmap desktop file breaks themeability
Status: RESOLVED FIXED
Product: gucharmap
Classification: Core
Component: general
2.21.x
Other All
: Normal minor
: ---
Assigned To: gucharmap maintainers
gucharmap maintainers
Depends on:
Blocks:
 
 
Reported: 2008-01-15 18:26 UTC by Joachim Frieben
Modified: 2008-01-15 19:37 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Joachim Frieben 2008-01-15 18:26:09 UTC
Please describe the problem:
This bug was initially submitted as a distribution specific bug at

  https://bugzilla.redhat.com/show_bug.cgi?id=415651

After upgrading to the latest gucharmap package, GNOME menu item
"Applications > Accessories > Character Map" sports a stock GNOME
icon even though the chosen icon theme is Bluecurve.

Steps to reproduce:
1. Upgrade to gucharmap-2.21.x
2. Start GNOME session.
3. Choose Bluecurve icon theme.
4. Open menu item "Applications > Accessories > Character Map".

Actual results:
Menu item "Applications > Accessories > Character Map" uses a stock
GNOME icon.

Expected results:
Menu item "Applications > Accessories > Character Map" uses a suitable
Bluecurve icon [as it did before].

Does this happen every time?
Yes.

Other information:
This used to work for earlier versions of the gucharmap package.
The reason for the current misbehaviour is an absolute icon path
in the corresponding desktop file gnome-gucharmap.desktop. By
changing "Icon=/usr/share/icons/hicolor/48x48/apps/gucharmap.png"
to "Icon=gucharmap", the correct behaviour is restored. Please
change gnome-gucharmap.desktop accordingly.
Comment 1 Christian Persch 2008-01-15 18:36:27 UTC
There is no absolute path in the Icon in the gucharmap.desktop file; this has to be a distro bug.

I removed the .png extension from the Icon in svn though.
Comment 2 Behdad Esfahbod 2008-01-15 19:01:19 UTC
This is because we ship and use our own icon, named gucharmap.  The "fix" is to use stock "charmap" icon IIRC.  I don't like that approach though, because it means a requirement on gnome-icon-theme or we may end up with no icon.

Same issue reported against gnome-terminal, see bug 342804, bug 126081, and bug 470309.
Comment 3 Joachim Frieben 2008-01-15 19:22:40 UTC
(In reply to comment #1)
> There is no absolute path in the Icon in the gucharmap.desktop file; this has
> to be a distro bug.
> I removed the .png extension from the Icon in svn though.

Hum, there is indeed some sed magic in the spec file of the corresponding Fedora SRPM in order to add an absolute path as I have found out in the meantime. The reason is given at

  https://bugzilla.redhat.com/show_bug.cgi?id=415651#c1 .

However, instead of patching the icon path, one could have also simply removed the extension. Anyway, I had been asked to report the issue upstream without being given further details.
For my own use, I had either set "Icon=gucharmap.png" or "Icon=gucharmap" both of which work, but fixing the icon name upstream is of course preferable. This will allow desktop-file-utils to work without complaint.
Comment 4 Joachim Frieben 2008-01-15 19:26:51 UTC
(In reply to comment #2)
> This is because we ship and use our own icon, named gucharmap.  The "fix"
> is to use stock "charmap" icon IIRC.

I think you're wrong here. The upstream desktop file is actually using the icon name "gucharmap", too. The issue was only related to the file extension which is no longer allowed when not a particular icon identified by adding the absolute path is given.
Comment 5 Behdad Esfahbod 2008-01-15 19:37:49 UTC
Well, I was pointing out another problem.  The Icon Naming Spec has the name "accessories-character-map" as a standard icon name.  We don't use that.  Seems like most relevant themes have gucharmap though.  So that's not the bug you were point out.  Filed that as bug 509726.