Re: desktop entries & UTF-8 links



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.

Attachment: pgpv5XB6qmCSY.pgp
Description: PGP signature



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