After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 332741 - Wrong example for desktop entry file
Wrong example for desktop entry file
Status: RESOLVED FIXED
Product: gnome-user-docs
Classification: Core
Component: sysadmin-guide
2.13.x
Other All
: Normal minor
: ---
Assigned To: Maintainers of Gnome user documentation
Maintainers of Gnome user documentation
Depends on:
Blocks:
 
 
Reported: 2006-02-27 14:27 UTC by Luca Ferretti
Modified: 2006-03-12 19:38 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Luca Ferretti 2006-02-27 14:27:46 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?
Comment 1 Luca Ferretti 2006-02-27 14:38:33 UTC
I forgot

  4. Provide an example of translation for Name and Comment
Comment 2 Luca Ferretti 2006-02-27 14:41:03 UTC
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
Comment 3 Brent Smith (smitten) 2006-03-01 00:55:25 UTC
Please commit these changes for the gcalctool example or let me know if you want me to.  Thanks.
Comment 4 Luca Ferretti 2006-03-01 13:09:25 UTC
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?
Comment 5 Brent Smith (smitten) 2006-03-03 01:29:14 UTC
I think the example is fine without the MimeType.  It's not a required key, and it is explained later on.
Comment 6 Luca Ferretti 2006-03-07 19:14:31 UTC
(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)
Comment 7 Brent Smith (smitten) 2006-03-11 01:55:27 UTC
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
Comment 8 Luca Ferretti 2006-03-12 19:38:39 UTC
2006-03-12  Luca Ferretti  <elle.uca@libero.it>

	* menustructure.xml:
	Use Name[fr] and Comment[fr] for .desktop example (bug # 332741 fixed)