Gentoo Archives: gentoo-dev

From: Heinrich Wendel <lanius@g.o>
To: gentoo-dev@g.o, Chris Gianelloni <wolf31o2@g.o>
Subject: Re: [gentoo-dev] Gentoo Menu - Bash vs. Python Rule files
Date: Wed, 13 Aug 2003 23:45:59
Message-Id: 200308140145.55260.lanius@gentoo.org
In Reply to: Re: [gentoo-dev] Gentoo Menu - Bash vs. Python Rule files by Chris Gianelloni
1 On Thursday 14 August 2003 01:47, Chris Gianelloni wrote:
2 > On Wed, 2003-08-13 at 18:00, Heinrich Wendel wrote:
3 > > You are right, it takes a lot of work. But the problem is that we want to
4 > > have flexible menus, via the menu-spec. How should this transparent
5 > > parser know in which category it should put the entry? The gnome/kde
6 > > categories are not compatible with the categories listened in the
7 > > menu-spec. And how can you know that the entries in /usr/share/applnk are
8 > > generated by our parser or by an ebuild?
9 >
10 > First off, using a spec that is not in use but will be in use is rather
11 > pointless, as you are doing WAY more work than need be done. The better
12 > way to go about it would be to create optional support for the new
13 > specifications and build to the current implementations. I, quite
14 > personally, couldn't care if this is the way things are "going to be" in
15 > KDE/Gnome/*box/etc. I only care how they are now. Create some
16 > conditionals which check for versions and match themselves to that
17 > specification. The menu structure should fairly well match what is
18 > being put out by the upstream maintainers as well as possible. As for
19 > the "generated by parser or ebuild" that is simple enough. The parser
20 > should *never* create files in the "legacy" locations, but only in the
21 > location where we designate the Gentoo menu system would go. Any files
22 > in the legacy locations would be placed by the package/ebuild and should
23 > not be considered authorative for our menu system, but rather should be
24 > parsed to *create* our menu system. For example, if I create an ebuild
25 > that copies a .desktop file to /usr/share/gnome/apps/Internet and call a
26 > make_gentoo_menu function at the end of my ebuild, then it should parse
27 > the file and add it appropriately to the Gentoo menu location. In this
28 > same token, I should be able to manually create a file in
29 > /usr/share/applications or /usr/share/gnome/apps/Office or
30 > /usr/share/applnk and then run a script, say update-menu, and it should
31 > parse all of the legacy locations and add any new files to the Gentoo
32 > menu system. Essentially, we should create a new menu system that is
33 > independent of the others, rather than trying to fix the others. It
34 > would be fairly trivial to patch the window managers to get their
35 > information from the Gentoo-created menus as opposed to the intensive
36 > problem of "fixing" every application that even thinks of installing a
37 > menu item. This is of course my opinion, but I am trying to keep this
38 > all on -dev so we can get some good feedback from the users, as they're
39 > the ones really requesting it.
40
41 How can we make a menu for KDE without writing to /usr/kde/3.1/share/applnk or
42 /usr/share/applnk ???
43
44 mfg, Heinrich :)
45
46 --
47 gentoo-dev@g.o mailing list

Replies

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