1 |
On Thursday 14 August 2003 00:54, Spider wrote: |
2 |
> begin quote |
3 |
> On Wed, 13 Aug 2003 15:14:04 -0700 |
4 |
> |
5 |
> Fred Van Andel <fava@g.o> wrote: |
6 |
> > So how do I use this in an ebuild. |
7 |
> > |
8 |
> > Do I have to write customized versions of start_menu() etc for each |
9 |
> > ebuild or do I call the start_menu() etc functions from within |
10 |
> > src_install() or will they be called automatically using on some |
11 |
> > defined variables as parameters? |
12 |
> |
13 |
> -as I understood it-, |
14 |
> |
15 |
> each package that wishes to do so should provide an .desktop file |
16 |
> (which is freedesktop standard, and KDE and Gnome have each implemented |
17 |
> them) and then a rule system (written with one rule-parser for each |
18 |
> system. ie, one for black/open/flux - box, one for WindowMaker, one for |
19 |
> Waimea and so on. KDE and Gnome both have their own builtin and"just do |
20 |
> it" . theese rulemakers will then parse the desktop files(via a common |
21 |
> frontend to read the desktopfiles) and add entries to the menu at |
22 |
> rebuildtime. |
23 |
> |
24 |
> |
25 |
> A desktop file is basically a list (With translations) of the following |
26 |
> entries: |
27 |
> |
28 |
> [Desktop Entry] |
29 |
> Name=Megalomaniac example |
30 |
> Exec=megalomaniac-exp --run |
31 |
> Icon=megalomaniac.png |
32 |
> Type=Application |
33 |
> Categories=Gentoo;Application;Development |
34 |
> --- |
35 |
> |
36 |
> With as many extra fields included as you wish. Theese all install into |
37 |
> a centralized place and is a standard commodity which can be parsed by |
38 |
> rulesets into the menu for, ex. Fluxbox .. |
39 |
> |
40 |
> |
41 |
> lanius, Svyatogor, correct me if I'm wrong or oversimplifying things |
42 |
> here? |
43 |
> |
44 |
|
45 |
That how it works. |
46 |
|
47 |
Additionally there is a .menu file (which the user can customize) describing |
48 |
how to arrange the submenus (take a look at gentoo.menu in cvs). |
49 |
|
50 |
The only complex thing is that every ebuild that want to support it needs to |
51 |
be changed. |
52 |
|
53 |
> //Spider |
54 |
mfg, Heinrich :) |
55 |
|
56 |
-- |
57 |
gentoo-dev@g.o mailing list |