~ubuntu-branches/ubuntu/karmic/menu/karmic

« back to all changes in this revision

Viewing changes to doc/menu.html/ch4.html

  • Committer: Bazaar Package Importer
  • Author(s): Bill Allombert
  • Date: 2006-12-22 15:20:52 UTC
  • mfrom: (1.1.8 feisty)
  • Revision ID: james.westby@ubuntu.com-20061222152052-q3io0s7huxuc33x2
Tags: 2.1.33
* The "and justice for all" release.
* Apply patch from Tim Dijkstra to simplify wait_dpkg() to not require
  signal to be sent between the parent and the child to work around a
  race condition in glibc, probably bug #223110. Closes: #374834.
* Menu translations
  - Portuguese updated by Miguel Figueiredo. Closes: #399241
  - Malayalam added by Praveen. Closes: #402016
  - Tamil added by Tirumurti Vasudevan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
<body>
14
14
 
15
 
<a name="ch4"></a>
 
15
<p><a name="ch4"></a></p>
16
16
<hr>
17
17
 
 
18
<p>
18
19
[ <a href="ch3.html">previous</a> ]
19
20
[ <a href="index.html#contents">Contents</a> ]
20
21
[ <a href="ch1.html">1</a> ]
26
27
[ <a href="ch7.html">7</a> ]
27
28
[ <a href="ch8.html">8</a> ]
28
29
[ <a href="ch5.html">next</a> ]
 
30
</p>
29
31
 
30
32
<hr>
31
33
 
36
38
 
37
39
<hr>
38
40
 
39
 
<a name="s4.1"></a>
40
 
<h2>4.1 Providing a menu file</h2>
 
41
<h2><a name="s4.1"></a>4.1 Providing a menu file</h2>
41
42
 
42
43
<p>
43
44
A package should provide a menu file
44
 
<samp>/usr/lib/menu/&lt;package-name&gt;</samp> that contains information about
45
 
each program it likes to make available in the menus.
 
45
<code>/usr/share/menu/&lt;package-name&gt;</code> that contains information
 
46
about each program it likes to make available in the menus.
 
47
</p>
46
48
 
47
49
<hr>
48
50
 
49
 
<a name="s4.2"></a>
50
 
<h2>4.2 Adding a hook for dpkg in your packages</h2>
 
51
<h2><a name="s4.2"></a>4.2 Adding a hook for dpkg in your packages</h2>
51
52
 
52
53
<p>
53
54
You should add a line like this to your <samp>postinst</samp> script
 
55
</p>
54
56
 
55
57
<pre>
56
58
      if test -x /usr/bin/update-menus; then update-menus; fi
57
59
</pre>
58
60
 
59
61
<p>
60
 
and the <samp>postrm</samp> script should get the line
 
62
and the <code>postrm</code> script should get the line
 
63
</p>
61
64
 
62
65
<pre>
63
66
      if test -x /usr/bin/update-menus; then update-menus; fi
65
68
 
66
69
<p>
67
70
(that is, the same line in postinst and in postrm).
 
71
</p>
68
72
 
69
73
<hr>
70
74
 
 
75
<p>
71
76
[ <a href="ch3.html">previous</a> ]
72
77
[ <a href="index.html#contents">Contents</a> ]
73
78
[ <a href="ch1.html">1</a> ]
79
84
[ <a href="ch7.html">7</a> ]
80
85
[ <a href="ch8.html">8</a> ]
81
86
[ <a href="ch5.html">next</a> ]
 
87
</p>
82
88
 
83
89
<hr>
84
90
 
85
91
<p>
86
92
Debian Menu System
 
93
</p>
87
94
 
88
95
<address>
89
 
version 1.4, 22 March 2005<br>
 
96
version 1.4, 6 August 2006<br>
90
97
<br>
91
98
Joost Witteveen <code><a href="mailto:joostje@debian.org">joostje@debian.org</a></code><br>
92
99
Joey Hess <code><a href="mailto:joeyh@debian.org">joeyh@debian.org</a></code><br>
94
101
Bill Allombert <code><a href="mailto:ballombe@debian.org">ballombe@debian.org</a></code><br>
95
102
<br>
96
103
</address>
97
 
 
98
104
<hr>
99
105
 
100
106
</body>