~sircmpwn/visurf-discuss

1

visurf missing visurfrc and urlfilter files

Saddhamma Study Group <saddhammastudygroup@gmail.com>
Details
Message ID
<CAO+ALekq3+f7kXtUd=TUkZ+347+UrK73dvaty-EshhNd817=uA@mail.gmail.com>
DKIM signature
missing
Download raw message
Hi Helpers,
I hope someone can help me with this request.

I compiled visurf successfully and am quite eager to use it but it seems
to be missing a "urlfilter" file (it complains that starting urlfilter
failed) and a
"visurfrc" file to run, which I can't seem to find in the repository.
Can anyone please send me these files or point me to the right location
to get them?

Thanks much.
Details
Message ID
<20220906102306.xpt7vqmn3vocdjuf@steefhegeman.com>
In-Reply-To
<CAO+ALekq3+f7kXtUd=TUkZ+347+UrK73dvaty-EshhNd817=uA@mail.gmail.com> (view parent)
DKIM signature
missing
Download raw message
Hi,

On Fri, Sep 02, 2022 at 06:08:04PM +0530, Saddhamma Study Group wrote:
> I compiled visurf successfully and am quite eager to use it but it seems
> to be missing a "urlfilter" file (it complains that starting urlfilter
> failed) and a
> "visurfrc" file to run, which I can't seem to find in the repository.
> Can anyone please send me these files or point me to the right location
> to get them?

I don't remember how I found out, but I believe it's this:
- The config file path is $XDG_CONFIG_HOME/netsurf/nsvirc. It's a
  line-break separated list of commands (frontends/visurf/commands.c).
- The default urlfilter location is $XDG_CONFIG_HOME/netsurf/urlfilter.
  There is an example in tools/urlfilter. I believe there was an issue
  with GNU awk, where it didn't flush to stdout properly. I've attached
  what I have currently (took the default and added fflush()es IIRC, as
  suggested in an earlier thread).

Kind regards,
Steef
Reply to thread Export thread (mbox)