desktop entries & UTF-8 links

Thiago Macieira thiago at kde.org
Wed Sep 14 03:36:48 EEST 2005


Christian Persch wrote:
>the desktop entry spec
>[http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-
>0.9.4.html#recognized-keys] says that a .desktop file of type Type=Link
> contains the linked URL in the "URL" field, which is specified to be of
> type "string". So it can only contain ASCII characters.

Correct.

>FWIW, Nautilus already creates .desktop files with UTF-8 in the URL
>field if you drag an IDN link [http://äöüss.net/] from a web browser to
>the nautilus desktop. And in fact in this situation UTF-8 is necessary;
>since when the hostname is URL-escaped instead, gecko cannot load it.
>
>The type should be changed to "localestring".

No. Nautilus should generate URLs in their ACE form so that older 
applications (that are not IDN capable) can access the site.

In your example, the .desktop file should have been pointing to 
xn--ss-uia6e4a.net

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

3. Ac seo woruld wearð geborod, swá se Scieppend cwæð "Gewurde Unix" and 
wundor fremede and him "Unix" genemned, þæt is se rihtendgesamnung.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/xdg/attachments/20050913/7a7417d5/attachment.pgp 


More information about the xdg mailing list