[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Build user menu entries in postinst



El 08/07/04, a les 11:46:56, Andreas Tille ens deleità amb les següents paraules:
> Hello,
> 
hi!

[...]
>  2. The next option for overriding the menu entry of the package
>     maintainer of dep_A is to provide a document file in
>        /usr/share/doc/$PKG/
>     which might be named as follows
[...]
>     if such a file exists use file to find out whether it is html or
>     not and call either sensible-browser or sensible-pager.  So the
>     resulting menu entry looks like
> 
>      ?package(dep_a): needs="text" \
> 	    section="CDD/Task" \
>             title="dep_A" \
>             command="sensible-<something> $docfile" \
>             hints="<html-title> / first line of text"
> 

well, i know that for now only txt and html are planned to be used, but
you could make this more generic and avoid the check with 'file' if
using the 'see' command...

[...]
> Comments?
> 

well, has somebody took a look through the gnome or kde menu system?

i've investigated a little, and i've found no automagically script for
doing something like /usr/lib/menu/cdd-menu, but i've thought of
something that might be a workaround...

we could create menu files on /etc/cdd/<CDD>/{gnome,kde} for Gnome and
KDE, respectively, and when updating the menus, symlinks to there could
be created for each CDD/role if the user is on it (for example, in
Gnome symlinks to /etc/cdd/<CDD>/gnome could be created on
$HOME/.gnome2/vfolders)

what do you think?

Bye bye

-- 
 "And it's much the same thing with knowledge, for whenever you learn
 something new, the whole world becomes that much richer."
 -- The Princess of Pure Reason, as told by Norton Juster in The Phantom
 Tollbooth



Reply to: