From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31192 invoked by uid 1002); 13 Aug 2003 22:54:24 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 17216 invoked from network); 13 Aug 2003 22:54:23 -0000 Date: Thu, 14 Aug 2003 00:54:51 +0200 From: Spider To: gentoo-dev@gentoo.org Message-Id: <20030814005451.1fae2d7e.spider@gentoo.org> In-Reply-To: <20030813151404.497059E0.fava@gentoo.org> References: <200308131844.24013.lanius@gentoo.org> <20030813151404.497059E0.fava@gentoo.org> Organization: Gentoo X-Mailer: Sylpheed version 0.9.4 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="=.cGq/sSjHrSfnVW" Subject: Re: [gentoo-dev] Gentoo Menu - Bash vs. Python Rule files X-Archives-Salt: 7fedf5e8-383a-46a0-ada1-c39366f9d2fe X-Archives-Hash: 376f52b376bcc654ca707ec102f4bf82 --=.cGq/sSjHrSfnVW Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit begin quote On Wed, 13 Aug 2003 15:14:04 -0700 Fred Van Andel wrote: > So how do I use this in an ebuild. > > Do I have to write customized versions of start_menu() etc for each > ebuild or do I call the start_menu() etc functions from within > src_install() or will they be called automatically using on some > defined variables as parameters? > -as I understood it-, each package that wishes to do so should provide an .desktop file (which is freedesktop standard, and KDE and Gnome have each implemented them) and then a rule system (written with one rule-parser for each system. ie, one for black/open/flux - box, one for WindowMaker, one for Waimea and so on. KDE and Gnome both have their own builtin and"just do it" . theese rulemakers will then parse the desktop files(via a common frontend to read the desktopfiles) and add entries to the menu at rebuildtime. A desktop file is basically a list (With translations) of the following entries: [Desktop Entry] Name=Megalomaniac example Exec=megalomaniac-exp --run Icon=megalomaniac.png Type=Application Categories=Gentoo;Application;Development --- With as many extra fields included as you wish. Theese all install into a centralized place and is a standard commodity which can be parsed by rulesets into the menu for, ex. Fluxbox .. lanius, Svyatogor, correct me if I'm wrong or oversimplifying things here? //Spider -- begin .signature This is a .signature virus! Please copy me into your .signature! See Microsoft KB Article Q265230 for more information. end --=.cGq/sSjHrSfnVW Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/OsG8ZS9CZTi033kRAm6gAKCJ1PO3heIZviZG3dOfU3nzT+pPuACfcT7i H6j2Dy3tWe8IdSbqBkFscwo= =u6Yn -----END PGP SIGNATURE----- --=.cGq/sSjHrSfnVW--