Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267018 - kde-base/kdebase-data-4.2.2 breaks Gtk+ icon search path
Summary: kde-base/kdebase-data-4.2.2 breaks Gtk+ icon search path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: InVCS
: 268585 270239 271413 271530 273089 273217 273580 275601 275989 281118 292082 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-21 20:52 UTC by Thomas Pani
Modified: 2009-12-04 01:07 UTC (History)
32 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
test.c (test.c,580 bytes, text/plain)
2009-04-21 20:53 UTC, Thomas Pani
Details
Temporary workaround (44xdg-override-kde,27 bytes, text/plain)
2009-06-18 18:19 UTC, Eitan Mosenkis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Pani 2009-04-21 20:52:22 UTC
With kdebase-data-4.2.2 the GtkIconTheme icon lookup is broken.
It seems /usr/kde/4.2/share/icons/hicolor/index.theme interrupts the hicolor fallback in the search path.

If I run the attached test code [test.c], it prints
  0
  1

If I remove /usr/kde/4.2/share/icons/hicolor/index.theme, it prints
  1
  1
(If I remove /usr/kde/4.2/share/icons/ from the search path, as well).

Note:
- This only occurs with hicolor fallthrough; if I touch /usr/share/gnome-games/icons/teleport.png, Gtk will find it.
- This occurs with both gtk+-2.14.7-r2 and gtk+-2.16.1
- If this is kde's fault, it's a regression against 4.2.1, everything worked fine there. (Though I can't figure out what changed, ebuild's gone).

I'd be happy to report this upstream, just don't know where (gnome/kde/freedesktop?)
Comment 1 Thomas Pani 2009-04-21 20:53:00 UTC
Created attachment 189091 [details]
test.c
Comment 2 Felix Riemann 2009-05-15 13:15:23 UTC
This occurs with kdelibs-3.5.10-r4 as well now , apparently due to changes to the $XDG_DATA_DIRS variable.

Latest kdelibs-3 orders it like <KDE_PREFIX>/share:/usr/share.
Overriding it to /usr/share:<KDE_PREFIX>/share makes the icons work again.

The problem with kde's hicolor theme is that it doesn't define all the context's that the freedesktop hicolor theme does. e.g. the places context (req. for Evolution) and the action context for 24x24 (gnome-games) are not defined in the KDE variant.

The question is if this a gtk+ bug, because it should not take the KDE hicolor as fallback (it clearly calls itself KDE-Hicolor in the index.theme file, it's just the folder that's called hicolor) or a kde bug.

P.S.:No kde*-4* installed here.
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-05-18 08:35:38 UTC
*** Bug 270239 has been marked as a duplicate of this bug. ***
Comment 4 Pacho Ramos gentoo-dev 2009-06-09 07:22:09 UTC
*** Bug 273089 has been marked as a duplicate of this bug. ***
Comment 5 Pacho Ramos gentoo-dev 2009-06-09 07:23:45 UTC
As said in Bug 273089 , this also affects to kdelibs-3.5.10-r6 (currently stable!)

I have seen that opensuse's kdelibs-3.5.10 is requiring hicolor-icon-theme
to be installed and they drop kdelibs's index.theme file

The same is done in fedora:
https://bugzilla.redhat.com/show_bug.cgi?id=178319
http://cvs.fedoraproject.org/viewvc/rpms/kdelibs/F-7/kdelibs.spec?r1=1.126&r2=1.127

I have tried to simply remove it and seems to work ok (I still have menu
entries for kile, kpdf and other kde apps, at least under gnome).

Thanks for fixing this soon
Comment 6 Pacho Ramos gentoo-dev 2009-06-14 19:25:30 UTC
Also, the same fix is being used in kdebase-4 under fedora, maybe this should be assigned to kde team then
Comment 7 Eitan Mosenkis 2009-06-18 18:19:54 UTC
Created attachment 195109 [details]
Temporary workaround

Dropping this attachment in /etc/env.d (and doing env-update; source /etc/profile) is a quick and dirty workaround for end-users who just want their icons back - based on Felix Riemann's report.
Comment 8 Felipe Lessa 2009-06-28 00:34:58 UTC
*** Bug 275601 has been marked as a duplicate of this bug. ***
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-07-01 15:53:42 UTC
*** Bug 275989 has been marked as a duplicate of this bug. ***
Comment 10 Zsolti 2009-07-03 19:59:09 UTC
(In reply to comment #7)
> Created an attachment (id=195109) [edit]
> Temporary workaround
> 
> Dropping this attachment in /etc/env.d (and doing env-update; source
> /etc/profile) is a quick and dirty workaround for end-users who just want their
> icons back - based on Felix Riemann's report.
> 

thanks to the quick fix, my gnome-power-manager icon is back and some broken icons in f-spot.
Comment 11 Rob 2009-07-08 20:07:56 UTC
(In reply to comment #7)
> Created an attachment (id=195109) [edit]
> Temporary workaround
> 
> Dropping this attachment in /etc/env.d (and doing env-update; source
> /etc/profile) is a quick and dirty workaround for end-users who just want their
> icons back - based on Felix Riemann's report.
> 

i have had this problem for a good couple of months now but your workaround worked for me. thanks! i do hope this bug gets properly addressed.
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2009-07-08 21:42:49 UTC
*** Bug 273580 has been marked as a duplicate of this bug. ***
Comment 13 Jonatan Åkerlind 2009-07-09 11:27:39 UTC
Same problem with icons for g-p-m and icons in evolution not working. The workaround suggested in comment #7 works for me as well.

i have
kde-base/kdelibs-3.5.10-r6
x11-misc/xdg-utils-1.0.2-r3
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2009-07-11 15:45:56 UTC
*** Bug 273217 has been marked as a duplicate of this bug. ***
Comment 15 Samuli Suominen (RETIRED) gentoo-dev 2009-07-12 13:56:05 UTC
*** Bug 271530 has been marked as a duplicate of this bug. ***
Comment 16 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-07-12 20:44:07 UTC
*** Bug 268585 has been marked as a duplicate of this bug. ***
Comment 17 Maciej Mrozowski gentoo-dev 2009-07-14 22:06:20 UTC
kdebase-data. nor kdelibs from KDE4 no longer provide hicolor index.theme file.
True, kdelibs from kde3 still does, I'll investigate whether it's really needed.
Comment 18 Martin Parm 2009-07-16 09:07:35 UTC
Both work-arounds as suggested in comment #5 and comment #7 works for me.

[I--] [  ] kde-base/kdebase-kioslaves-3.5.9 (3.5)
[I--] [  ] kde-base/kdelibs-3.5.9-r4 (3.5)
[I--] [  ] kde-base/kdeprint-3.5.9 (3.5)

Comment 19 Felix Riemann 2009-07-18 18:00:15 UTC
(In reply to comment #5)

> I have seen that opensuse's kdelibs-3.5.10 is requiring hicolor-icon-theme
> to be installed and they drop kdelibs's index.theme file
> 
> The same is done in fedora:

Debian seems to do it as well: http://bugs.debian.org/238839

Comment 20 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-07-19 17:13:47 UTC
*** Bug 271413 has been marked as a duplicate of this bug. ***
Comment 21 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-08-11 16:33:49 UTC
*** Bug 281118 has been marked as a duplicate of this bug. ***
Comment 22 Pacho Ramos gentoo-dev 2009-09-21 15:23:34 UTC
From my point of view this is wrongly assigned to gnome team, KDE team would be a better assign for dropping that index.theme

Thanks
Comment 23 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-09-21 15:38:44 UTC
well they already were CCed, switching assignee/CC.
Comment 24 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-11-07 21:58:04 UTC
*** Bug 292082 has been marked as a duplicate of this bug. ***
Comment 25 Dan Johnson 2009-11-07 23:16:52 UTC
Has anyone tried this without kdeprefix? It seems like it might be tied to that.
Comment 26 Maciej Mrozowski gentoo-dev 2009-12-04 01:07:31 UTC
As of http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;f=kde-base/kdebase-data/kdebase-data-9999.ebuild;h=b134159f9360be68acf9a36b3c10021ba5aa2c8f, index.theme is dropped from kdebase-data (before KDE 4.3.0).

Therefore any further GTK+ icons search path issues are no longer KDE originated.