Subject: bug#61742: icecat.desktop show ??????????

From: Maxim Cournoyer <[email-masked]>
Date: Thu, 02 Mar 2023 16:19:32 -0500

Hi Akib,

[...]

>> Interestingly, this older icecat in my store, at version 102.7.0 didn't
>> have that problem:
>>
>> cat /gnu/store/8x8pqbdykw9wpkc2ankxg6ccnqv82ca2-icecat-102.7.0-guix0-preview1/\
>>  share/applications/icecat.desktop
>>
>> [Desktop Entry]
>> Version=1.0
>> Name=GNU IceCat Web Browser
>> Name[ar]=متصفح الويب فَيَرفُكْس
>> Name[ast]=Restolador web GNU IceCat
>> Name[bn]=ফায়ারফক্স ওয়েব ব্রাউজার
>> Name[ca]=Navegador web GNU IceCat
>> Name[cs]=GNU IceCat Webový prohlížeč
>> Name[da]=GNU IceCat - internetbrowser
>> [...]
>
> The "Name[bn]" key is wrong, it contains "Firefox Web Browser" in
> Bengali, while it should be "GNU IceCat" (or something like that).

Thank you.  This problem exists upstream; the only transformations we do
in the desktop file definition are:

--8<---------------cut here---------------start------------->8---
          (add-after 'wrap-program 'install-desktop-entry
            (lambda _
              ;; Install the '.desktop' file.
              (let* ((desktop-file "taskcluster/docker/icecat-snap/icecat.desktop")
                     (applications (string-append #$output "/share/applications")))
                (substitute* desktop-file
                  (("^Exec=icecat")     (string-append "Exec=" #$output "/bin/icecat"))
                  (("IceCat")           "GNU IceCat")
                  (("Icon=.*")          "Icon=icecat\n")
                  (("NewWindow")        "new-window")
                  (("NewPrivateWindow") "new-private-window")
                  (("StartupNotify=true")
                   "StartupNotify=true\nStartupWMClass=Navigator"))
                (install-file desktop-file applications))))
--8<---------------cut here---------------end--------------->8---

-- 
Thanks,
Maxim