question about group

André Gillibert rcvxdg at gmail.com
Thu Feb 7 02:44:31 PST 2008


 Kresnik Igor wrote:
> hello
> Where i must put *.desktop file that all users see my program in Group
> Applications/Office and where for others group
>

Read the specifications!
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html

Basically:
XDG_DATA_DIRS defaults to /usr/local/share:/usr/share

Put the .desktop file of your application in $XDG_DATA_DIRS/applications/
(only in ONE of the directories). Depending on the local conventions you
should put it in /usr/local/share/applications/ or /usr/share/applications/
or give the choice to the user (e.g. for source tarballs).
The directory suggested by the "Base Directory Specification"
is /usr/share/applications/.

The basedir-spec says:
> Such file should be installed to $datadir/subdir/filename with
> $datadir defaulting to /usr/share.

Your .desktop file must contain a Categories entry.

Categories=Office

Most probably, you can specify a minor category such as
WordProcessor or Spreadsheet. If the applications.menu file
has been well written, your application will automatically be
included in the menu at the right place.

Otherwise, read the specs to create your own menu file and
put it in $XDG_CONFIG_DIRS/menus/applications-merged/
XDG_CONFIG_DIRS defaults to /etc/xdg/


More information about the xdg mailing list