On Fri, Mar 31, 2000 at 12:10:27AM +0200, David BAUDENS wrote:
> Stefan Siegel a �crit :
>
> > Am 2000-04-23, um 22:11:40 (+0200) schrieb David BAUDENS:
> > > Of course but menu system doesn't support tests.
> >
> > No problems with the menu system,
>
> False. It's the problem.
>
Please read the docs. It is only a problem if you use needs=X11. In that
case, yes, people will need a x11 web browser to view howtos.
In another life, I've seen things such as needs=dwww for html documentation.
What we could do is to add a line in each WM we have for the menu-method
file between supported an endsupported, to support these kind of dwww.
OK. May be too much work for now, but should absolutely be supported for
our next releases
>
> > my problem is that you force the
> > netscape RPM to be installed, for being able to use the HOWTOs.
>
> Because if you see in WM menu an entry for Howto and if when you click
> on it nothing appear, you'll say: � Nothing appear... It's buggy! � and
> I won't that you say that. When you clic in menu, � netscape
> /usr/doc/HOWTO/HTML/$LANG/index.html is call �. So, Netscape is
> required.
>
Nope, a wrapper like this one is required:
if [ -x /usr/X11R6/bin/netscape ] ;
netscape $@
elsif [ -x /usr/X11R6/bin/kfm ] ;
kfm $@
elsif ...
lynx $@
else
cat $@ | sed -e 's/<[^>]>//g' | less
fi
Sorry, if the syntax is buggy, I guess you got the idea.
>
> > > As I want that HTML can be read when you select them in menu,
> > > I use an independent WM/DM viewer (and no I'll use lynx, beginners
> > > don't like it).
> >
> > IMHO this is not correct. place a
> >
> > ------8<------------------------------------->8--------
> > Provides: htmlbrowser
> > ------8<------------------------------------->8--------
> >
> > line in "lynx" "lynx-ssl" and "netscape" RPMs. this is the correct way
> > to deal with it.
>
> No, not with actual menu system. I can only call one program and I can't
> do any test to know what � htmlbrowser � is available (for the moment)
>
See wrapper above.
DindinX
--
[EMAIL PROTECTED] HF Team