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

Re: xdg menu entries



Le Thu, Feb 07, 2013 at 03:50:58PM +1000, Steven Hamilton a écrit :
> 
> 1) How are XDG .desktop files handled. What is Debian policy regarding
> these?
> 
> 2) Is it acceptable to create a .desktop file for the game, or more
> appropriately, is it acceptable to create a shell script in /usr/games/
> that can execute the Mari0 game with a single command? That way people
> can run it from a command line.

Dear Steve,

the best solution for the menu entry is to write a .desktop file and send it
upstream, so that their build system will install it in the appropriate
directory for all users.

In the meantime, you can ship it in the Debian part of the source package, and
install it in /usr/share/applications.  Dpkg triggers will take care of
everything else.

There is currently no policy for FreeDeskotop (XDG) menu files, however the
format has a nice speficication for you to follow.

    http://standards.freedesktop.org/desktop-entry-spec/latest/

In addition, the program `desktop-file-validate`, from the desktop-file-utils
package, will be useful for you to check your Desktop entry file before
sending it upstream and distributing in Debian.

(For the possibility to drop a script in /usr/games, I have no comment to make).

Have a nice day,

-- 
Charles Plessy
Tsurumi, Kanagawa, Japan


Reply to: