Derek Cunningham wrote:
> On Thu, Jun06,02 12:53, Mr.X wrote:
>>
>>This is cool.  Works fine for me, by the way.
> 
> 
> Hmm... now we need bbgoogle. :)
> 
> DC
> 

remove the space when strncat()'ing browser
to real_command, build it.  (the patch shows the lines)

modify bbweb.browser to be something like
/usr/bin/mozilla http://www.google.com/search\?hl=en\&q=

i have no idea how URL-escape stuff in C, so some queries
might fail (ones with spaces or other funky chars), but
that's the general idea of making bbweb into bbgoogle :-)

maybe i'll use this opportunity to teach myself Perl/Tk
or PHP-Gtk -- becuase then i could do so much more
with it.
--- bbweb.orig  Fri Jun  7 12:19:33 2002
+++ bbweb.c     Fri Jun  7 12:27:34 2002
@@ -92,7 +92,7 @@
        read_browser();
        
        strncat(real_command, browser, 100);
-       strncat(real_command, " ", 2);
+       //strncat(real_command, " ", 2);
 
 
        for (i = 1; i < argc; i++)

Reply via email to