Bug 133267 - KIconLoader/KMenu doesn't look for applications icons in /usr/share/pixmaps and /usr/local/share/pixmaps
Summary: KIconLoader/KMenu doesn't look for applications icons in /usr/share/pixmaps a...
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 112425 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-08-30 12:41 UTC by Artem S. Tashkinov
Modified: 2007-11-18 18:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A patch which makes KDE look for icons in /usr/share/local/pixmaps (973 bytes, patch)
2007-02-27 17:54 UTC, Artem S. Tashkinov
Details
The right patch which makes KDE look for icons in /usr/share/local/pixmaps (1001 bytes, patch)
2007-02-27 17:57 UTC, Artem S. Tashkinov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Artem S. Tashkinov 2006-08-30 12:41:21 UTC
Version:            (using KDE KDE 3.5.4)
Installed from:    Compiled From Sources
Compiler:          GCC 4.1.1 i686 vanilla
OS:                Linux

KIconLoader doesn't favour /usr/share/pixmaps and /usr/local/share/pixmaps directories when searching for application icons. This causes iconless KMenu entries when applications are installed in /usr/local or their .desktop files do not contain full path to their icons.
Comment 1 Stephan Kulow 2006-08-30 15:11:37 UTC
why do you think it should look for /usr/local/share/pixmaps? 
I.e. what standard says so? I don't think pixmaps is in any standard.
Comment 2 Artem S. Tashkinov 2006-08-30 19:26:50 UTC
Fedora Core 5 has all its applications .desktop files in /usr/share/applications directory and most icons in /usr/share/pixmaps.

If you install KDE3 from sources into any directory other than /usr then most entries in KMenu will lack their icons because icons' absolute path is not set.

That's exactly my scenario.

Also if you install any application into /usr/local, then this application will put its icons into /usr/local/pixmaps. KMenu *will* list applications listed both in /usr/share/applications and /usr/local/share/applications but it won't find appropriate icons.

Try installing e.g. PSI into /usr/local and you will get exactly what I'm describing.
Comment 3 Artem S. Tashkinov 2007-02-27 17:54:31 UTC
Created attachment 19843 [details]
A patch which makes KDE look for icons in /usr/share/local/pixmaps

This bug is somewhat a duplicate of bug number 97776.

Anyway /usr/share/local/pixmaps is still uncovered. ;-) Here's a missing patch.
Comment 4 Artem S. Tashkinov 2007-02-27 17:57:14 UTC
Created attachment 19844 [details]
The right patch which makes KDE look for icons in /usr/share/local/pixmaps

A slightly more correct patch.
Comment 5 Pino Toscano 2007-11-18 17:11:25 UTC
*** Bug 112425 has been marked as a duplicate of this bug. ***
Comment 6 Pino Toscano 2007-11-18 17:18:58 UTC
It looks like KIconLoader in both KDE3 and KDE4 has:
>     dirs += d->mpDirs->resourceDirs("pixmap");
that should add 'pixmap' to the directories specified in the envvar XDG_DATA_DIRS, or /usr:/usr/local when that envvar is empty.
Comment 7 Artem S. Tashkinov 2007-11-18 18:58:14 UTC
As for KDE 3.5.7 and higher this bug is no longer valid.

Marking as resolved.