Gentoo Archives: gentoo-dev

From: Spider <spider@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Gentoo Menu - Bash vs. Python Rule files
Date: Wed, 13 Aug 2003 22:54:24
Message-Id: 20030814005451.1fae2d7e.spider@gentoo.org
In Reply to: Re: [gentoo-dev] Gentoo Menu - Bash vs. Python Rule files by Fred Van Andel
1 begin quote
2 On Wed, 13 Aug 2003 15:14:04 -0700
3 Fred Van Andel <fava@g.o> wrote:
4
5
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
14 -as I understood it-,
15
16 each package that wishes to do so should provide an .desktop file
17 (which is freedesktop standard, and KDE and Gnome have each implemented
18 them) and then a rule system (written with one rule-parser for each
19 system. ie, one for black/open/flux - box, one for WindowMaker, one for
20 Waimea and so on. KDE and Gnome both have their own builtin and"just do
21 it" . theese rulemakers will then parse the desktop files(via a common
22 frontend to read the desktopfiles) and add entries to the menu at
23 rebuildtime.
24
25
26 A desktop file is basically a list (With translations) of the following
27 entries:
28
29 [Desktop Entry]
30 Name=Megalomaniac example
31 Exec=megalomaniac-exp --run
32 Icon=megalomaniac.png
33 Type=Application
34 Categories=Gentoo;Application;Development
35 ---
36
37 With as many extra fields included as you wish. Theese all install into
38 a centralized place and is a standard commodity which can be parsed by
39 rulesets into the menu for, ex. Fluxbox ..
40
41
42 lanius, Svyatogor, correct me if I'm wrong or oversimplifying things
43 here?
44
45 //Spider
46
47 --
48 begin .signature
49 This is a .signature virus! Please copy me into your .signature!
50 See Microsoft KB Article Q265230 for more information.
51 end

Replies

Subject Author
Re: [gentoo-dev] Gentoo Menu - Bash vs. Python Rule files Heinrich Wendel <lanius@g.o>