[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#643656: icons not showing up - empty XDG_DATA_DIRS



On 10/12/2011 04:39 PM, Kevin Krammer wrote:
> 
> On Wednesday, 2011-10-12, Török Edwin wrote:
>> On 10/12/2011 04:29 PM, Kevin Krammer wrote:
>>> On Wednesday, 2011-10-12, Török Edwin wrote:
>>>> I tried moving kde to .kde-old, and logging in again but that didn't
>>>> help.
>>>>
>>>> I finally tracked down the problem: XDG_DATA_DIRS environment variable
>>>> was empty which caused a number of applications to not function
>>>> correctly in KDE (pidgin not finding its icons, openbox not findings
>>>> the themes, etc.). I removed
>>>> /var/cache/desktop-profiles/activated-profiles, and run
>>>> update-profile-cache as root.
>>>>
>>>> Now when I login all the icons show up in the tray as they are supposed
>>>> to, because XDG_DATA_DIRS is no longer empty!
>>>
>>> Can you try unsetting XDG_DATA_DIRS and see if the problem shows up
>>> again?
>>
>> This makes the problem show up again
>> export XDG_DATA_DIRS=
>> pidgin
> 
> This should work.
> The spec [1] section "environment variables" says: "If $XDG_DATA_DIRS is 
> either not set or empty, a value equal to /usr/local/share/:/usr/share/ should 
> be used."
> 
> This is the case "empty"
> 
> You might want to report this as a bug against pidgin.

Done.

> 
>> So does this:
>> export XDG_DATA_DIRS=:
>> pidgin
>>
>> This works correctly
>> unset XDG_DATA_DIRS
>> pidgin
> 
> The "not set" case of the spec seems to be done correctly.
> 
>> And this is what I actually had (sorry missed the :) when I wrote my
>> previous reply:
>>
>> XDG_DATA_DIRS=:
> 
> Ah. I think this is correct, if annoying, behavior in this case.

I couldn't figure out how to reproduce the XDG_DATA_DIRS=: case, unless it was a corrupted
/var/cache/desktop-profiles/activated_profiles file (the file is 0 sized now, don't know if it contained anything before).

Should there be some sanity checks in KDE / desktop-profiles scripts to check that XDG_DATA_DIRS make sense?
i.e. that it refers to at least one directory that exists.

Best regards,
--Edwin



Reply to: