Hi,
I entered in suckless surf webpage i didn't found a patch for homepage for surf 6.0. But i found it for search engine.
I downloaded and i installed the patch how is described on the website!
I received this message:
# patch -p1 < /home/henrique/surf-0.6-searchengines.diff
patching file config.def.h
Hunk #1 FAILED at 101.
1 out of 1 hunk FAILED -- saving rejects to file config.def.h.rej
patching file surf.c
Hunk #1 succeeded at 76 (offset 6 lines).
Hunk #2 succeeded at 144 (offset -1 lines).
Hunk #3 succeeded at 633 (offset -2 lines).
Hunk #4 succeeded at 899 (offset -18 lines).
I think that is a error no?
But i ignored it and puted the codes
static SearchEngine searchengines[] = {
{ "g", "
http://www.google.de/search?q=%s" },
{ "leo", "
http://dict.leo.org/ende?search=%s" },
};
in my config.h (that was clean). And i tryed to compile. But i received a lot of errors!
I'm really confusing about do this!
Does someone already set up a search engine on surf that can help me or share your code?
-Henrique Lengler
On Tue, Apr 08, 2014 at 06:40:47AM +0200, Christoph Lohmann wrote:
> Greetings.
>
> On Tue, 08 Apr 2014 06:40:47 +0200 Henrique Lengler <henriqueleng_AT_openmailbox.org> wrote:
> > I'm trying to set up a homepage and a searchengine on my surf web browser. But i can't understand the official wiki. I added those lines in my config.h
> >
> > #define HOMEPAGE "http://www.google.com/"
> >
> > static SearchEngine searchengines[] = {
> > { "g", "http://www.google.de/search?q=%s" },
> > };
> >
> > But anything are working. I really don't know if i'm doing right. Someone can help me?
>
> Are you applying the patches from the website to your surf? Without
> them nothing is handled, as you describe it.
>
>
> Sincerely,
>
> Christoph Lohmann
>
>
Received on Tue Apr 08 2014 - 19:18:32 CEST