GNOME Bugzilla – Bug 332741
Wrong example for desktop entry file
Last modified: 2006-03-12 19:38:39 UTC
Documentation Section: Customizing Menus > Desktop Entry Files [Desktop Entry] Encoding=UTF-8 Name=Calculator Comment=Perform calculations Exec=gcalctool Icon=gcalctool.png Terminal=false Type=Application Categories=GTK;GNOME;Application;Utility; Correct version: 1. png extension in Icon key is wrong 2. No example for MimeType 3. No StartupNotify Other information: I can fix 1 and 3, but, if you are righ, IMHO is better replace it with the .desktop file for Epiphany (it provides MimeTypes key). OK to commit?
I forgot 4. Provide an example of translation for Name and Comment
Same issues (1. and 4.) in the example for desktop entry file in next section (Directory Entry Files). I propose (and eventually I will commit) something like [Desktop Entry] Name=Accessories Name[it]=Accessori Comment=Accessories menu Comment[it]=Menu accessori Icon=gnome-util Type=Directory
Please commit these changes for the gcalctool example or let me know if you want me to. Thanks.
2006-03-01 Luca Ferretti <elle.uca@libero.it> * gnome2-system-admin-guide/C/menustructure.xml: in desktop entry example: - changed gcalctool.png to gnome-calculator for Icon key; - added StartupNotify=true key; - added Name[ar] and Comment[ar] keys, with value (UTF8 rules) See also bug #332741 Brent, OK? Or change this exaple to Epiphany, providing MimeTypes key too? Now the desktop entry example is <programlisting>[Desktop Entry] Encoding=UTF-8 Name=Calculator Name[ar]=آلة حاسبة ... Comment=Perform calculations Comment[ar]=تأدية حسابات ... Exec=gcalctool Icon=gnome-calculator Terminal=false Type=Application StartupNotify=true Categories=GTK;GNOME;Application;Utility;</programlisting> What about directory entry example?
I think the example is fine without the MimeType. It's not a required key, and it is explained later on.
(In reply to comment #5) > I think the example is fine without the MimeType. It's not a required key, and > it is explained later on. Yes, you are right (Now I've transalated the MIME chapter too). So, what about the directory entry file example? OK to commit this: <programlisting>[Desktop Entry] Name=Accessories Name[be]=Зручнасьці ... Comment=Desktop accessories Comment[be]=Зручнасьці для стальца ... Icon=gnome-util Type=Directory Encoding=UTF-8</programlisting> PS unfortunately [ar] is not available for both Name and Comment)
Luca: I would like to use an language for which most characters are available in the standard pdf fonts, otherwise I get "#### ###' Feel free to commit this whenever
2006-03-12 Luca Ferretti <elle.uca@libero.it> * menustructure.xml: Use Name[fr] and Comment[fr] for .desktop example (bug # 332741 fixed)