While working on the Debian version for leocad, I noticed the need for a
desktop file for the project.  A desktop file is used by Gnome and KDE
to list the program in the menus, and to associate the program with MIME
types to make sure the program is called when one of its supported
format is "opened".  I added one to the Debian git repository[1].  I
also noticed the OpenSUSE packager discovered the same need, and solved
it by adding one to his packaging[2].

 1) <URL: http://anonscm.debian.org/gitweb/?p=collab-maint/leocad.git >
 2) <URL: 
https://build.opensuse.org/package/show?package=leocad&project=home%3Aftr3g%3Alego
 >

Based on this observation, I believe it would be a good idea to add an
"official" desktop file to the source.  The one I propose look like
this:

  [Desktop Entry]
  Encoding=UTF-8
  Name=LeoCAD
  Comment=Create virtual LEGO models
  Comment[nb]=Lag virtuelle LEGO-modeller
  Exec=/usr/bin/leocad
  Terminal=false
  Type=Application
  Icon=/usr/share/pixmaps/leocad32.png
  #MimeType=x-scheme-handler/leocad;
  Categories=Development;GUIDesigner;Education;

I do not know where it should go in the source tree, so I do not propose
a patch.  I am also not sure about the Categories nor the MimeType
entry, and would like some input here.  Is there a MIME type defined
already?  If not, according to a recent Debian developer news
bulletin[3], it is fairly easy to get an official one assigned with
IANA[4].

 3) <URL: http://lists.debian.org/debian-devel-announce/2012/12/msg00002.html >
 4) <URL: http://tools.ietf.org/html/draft-ietf-appsawg-media-type-regs-14 >

It would be best if the icon file was a SVG, but I did not find anything
like that in the source.  Thus I ended up using one of the PNGs.
Perhaps a SVG could be created and included in the source?

PS: I am not a subscriber, so please keep me on CC. :)

-- 
Happy hacking
Petter Reinholdtsen
_______________________________________________
Leocad mailing list
[email protected]
https://list.gerf.org/listinfo/leocad

Reply via email to