.desktop files with relative icons ?

Bastian, Waldo waldo.bastian at intel.com
Mon Aug 28 13:44:51 PDT 2006


>On 8/28/06, Bastian, Waldo <waldo.bastian at intel.com> wrote:
>> Prefix with ./ sounds good:
>>
>> * If it starts with "/" it's an absolute path
>> * If it starts with "./" is's a relative path
>> * Everything else is a themed icon name
>
>'foo/bar.png' is not a relative path, then? That might be a problem
>since Unix doesn't allow the / character in filenames.
>
>I think that anything starting with a / should be an absolute path,
>and everything containing a / whould ba some form of path or other.
>Otherwise you needlessly get the potential for invalid icon names.

foo/bar.png would be looked up according to the icon theme spec.
(E.g. as /usr/share/icons/hicolor/64x64/apps/foo/bar.png)

./foo/bar.png would be a relative path.

That's how the current implementation works.

Cheers,
Waldo



More information about the xdg mailing list