getting privoxy working with vimprobable

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

getting privoxy working with vimprobable

Post by mimosa »

I posted about this while Ratpoison was in beta. I've just had another go and got no further. While many browsers expect to be told about the proxy server (127.0.0.1:8118),

Code: Select all

vanilla[~]$ cat .config/jumanji/jumanjirc | grep proxy
set proxy localhost:8118
according to the documentation vimprobable needs to be told to use the environment variable http_proxy, so somewhere in startup you do

Code: Select all

export http_proxy="127.0.0.1:8118"

Code: Select all

vanilla[~]$ man vimprobablerc | grep proxy
       proxy=[true|false]
              Whether to read and use the http_proxy environment variable
Well, it works with Firefox, Jumanji and Midori, but not Vimprobable.

I should say that I can't get the Slackbuild to work - the source isn't included, and I expect I'm putting it in the wrong place. But the one on the Privoxy website seems easy enough to build.

Has anybody else tried to use Privoxy with Vimprobable?
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: getting privoxy working with vimprobable

Post by mimosa »

Finally, a small clue: when Vimprobable is opened from a link in pine (calling Gapan's script vimprobable2-launch), privoxy works correctly; but not when it is called by the C-t v shortcut (maybe this is my customisation) or from the ratmenu. Called from the script by pine, a message even appears at the very bottom: "Proxy activated".

I tried changing the C-t shortcut in .ratpoisonrc to a call just like that used in the script, but with a specific URL instead of $@; the correct page opens, but not with privoxy. I also tried changing the script along the same lines and calling it from .ratpoisonrc, with the same result.

For the record, here is the script as is.

Code: Select all

#!/bin/sh
/usr/bin/vimprobable2 "$@" 2> /dev/null &
Could this have something to do with permissions?

Finally, when I call the temporarily modified vimprobable launch script from the command line (not as root) privoxy works, even though it doesn't when the very same script is called via menu or shortcut. That means I have a workaround for using vimprobable with privoxy; but I'm very puzzled by all this.
User avatar
gapan
Salix Wizard
Posts: 6368
Joined: 6. Jun 2009, 17:40

Re: getting privoxy working with vimprobable

Post by gapan »

I'm thinking that probably the http_proxy variable isn't used when launching with a ratpoison shortcut. Try changing the shortcut to launch a script that will first export the variable and then launch vimprobable.
Image
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: getting privoxy working with vimprobable

Post by mimosa »

That is just what I ended up doing, and it worked; I put a line exporting the variable in your script vimprobable2-launch (which quite happily opens the homepage if called without an argument) and bound the browser shortcut to that.

I'll add environment variables to my list of stuff to read up on ;)

Thanks!
Post Reply