[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ next ]


Debian Menu System
Chapter 4 - What packages with applications should do


4.1 Providing a menu file

A package should provide a menu file /usr/share/menu/<package-name> that contains information about each program it likes to make available in the menus.


4.2 Adding a hook for dpkg in your packages

You should add a line like this to your postinst script

      if test -x /usr/bin/update-menus; then update-menus; fi

and the postrm script should get the line

      if test -x /usr/bin/update-menus; then update-menus; fi

(that is, the same line in postinst and in postrm).


[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ next ]


Debian Menu System

version 1.4, 12 May 2008

Joost Witteveen joostje@debian.org
Joey Hess joeyh@debian.org
Christian Schwarz schwarz@debian.org
Bill Allombert ballombe@debian.org