Icon loader ignoring $XDG_DATA_HOME

Thiago Macieira thiago at kde.org
Sun Jun 11 07:01:25 BST 2006


Waldo Bastian wrote:
>It seems that KDE doesn't look in $XDG_DATA_HOME/icons for icons as per
> icon spec. I would like to know if that is going to be (or has already
> been) fixed and if so, in which version(s) such fix can be expected. I
> can work around it in Portland/xdg-utils but if the icon spec is to be
> included in LSB 3.2, a fix is needed. For Portland it would be nice to
> know which versions of KDE require a workaround (As far as I can see it
> affects every version up till now).

As far as I can tell from the code in kstandarddirs.cpp and 
kiconloader.cpp, all versions are affected. The workaround would be to 
symlink ~/.kde/share/icons to $XDG_DATA_HOME or vice-versa. Another 
possibility is to have either KDEHOME or KDEDIRS point to XDG_DATA_HOME.

The proper fix would probably involve adding a "xdgdata-icons" to the 
prefix list in KIconLoader::init.

But this is not my area of expertise, so I could be way off the mark here.

-- 
Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
  thiago.macieira (AT) trolltech.com     Trolltech AS
    GPG: 0x6EF45358                   |  Sandakerveien 116,
    E067 918B B660 DBD1 105C          |  NO-0402
    966C 33F5 F005 6EF4 5358          |  Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060611/ceb5e24e/attachment.sig>


More information about the kde-core-devel mailing list