1 |
On Wed, 2002-04-17 at 23:07, Jon Nelson wrote: |
2 |
Hi! |
3 |
|
4 |
My post got mangled and was incomplete. I'm appending it whole :) |
5 |
> |
6 |
> The problem with that approach is that if you later decide to use gnome, |
7 |
> you would have to re-emerge everything to get its menu entry. |
8 |
|
9 |
Only if gnome wasn't in the USE. But that is a good point, if gnome is |
10 |
added to the USE later. But then a separate stand alone script could be |
11 |
made to parse /var/db/pkg/ and just merge any menu items not present |
12 |
that would be with the new USE variable (ok maybe I'm stretching abit :) |
13 |
|
14 |
> Having each program place its menu entry (or entries) in a central |
15 |
> location (ala Debian, again), and then having a post-process program |
16 |
> zip through and create the KDE, GNOME, AfterStep, BlackBox, and |
17 |
> so on "system" menus sounds better to me. |
18 |
|
19 |
Except from my experience debians menu system becomes a complete mess. |
20 |
Having to drill down through multiple submenus to get to what you want. |
21 |
I, personally don't care for that. |
22 |
|
23 |
The advantage to this implementation, is that the menu item is inserted |
24 |
into the existing submenus categories. |
25 |
|
26 |
Regards, |
27 |
|
28 |
tod |
29 |
|
30 |
Full previous post (for what its worth): |
31 |
|
32 |
Hi! |
33 |
|
34 |
My thought on this issue would be the addition of a 'domenu' helper |
35 |
script that could be a one line addition in the src_install function. |
36 |
For example, |
37 |
|
38 |
src_install() { |
39 |
|
40 |
make blah blah install || die |
41 |
|
42 |
dodoc blah blah |
43 |
|
44 |
domenu |
45 |
|
46 |
} |
47 |
|
48 |
|
49 |
The 'domenu' script would cascade through the desktop USE variables |
50 |
(i.e. gnome, kde, etc , might have to add some for other desktops that |
51 |
don't already have a USE variable.) If the USE variable for a |
52 |
particlular desktop is set then insert a menu item. for example (off |
53 |
the top of my head, so illustrative, not necessarily working), |
54 |
|
55 |
if use gnome; then |
56 |
if [ -e ${FILESDIR}/${PN}.desktop]; then |
57 |
submenu=$( grep Type ${FILESDIR}/${PN}.desktop | \ |
58 |
sed "s:\(Type=\)\([[:alpha:]]*\).*:\2:" ) |
59 |
insinto /usr/share/gnome/apps/${submenu} |
60 |
doins ${FILESDIR}/${PN}.desktop |
61 |
fi |
62 |
if [ -e ${FILESDIR}/${PN}-logo.*]; then |
63 |
insinto /usr/share/pixmaps |
64 |
doins ${FILESDIR}/${PN}-logo.* |
65 |
fi |
66 |
fi |
67 |
|
68 |
Presumably, someone familar with the other desktop environments menus |
69 |
could work up a similar section for those. |