Add proxy support to smtube
Originally created by @intrigeri on #6433 (Redmine)
smtube does not obey the proxy environment variables we set. It connects
fine to YouTube when run with torsocks, but then, the Totem it runs
tries to connect to its HTTP proxy (since it obeys http_proxy
) on
127.0.0.1 via Tor, and torsocks blocks that.
Adding standard proxy environment variables support to smtube seems
pretty easy, using QNetworkProxyFactory::setUseSystemConfiguration
(that even supports using socks5/socks5h… via http_proxy
, so even with
this feature added, if we want to avoid adding another usecase for
Polipo, we might have to wrap smtube to call it with a custom
http_proxy
).
This was reported as Debian bug #730233.
Parent Task: #5584 (closed)
Edited by intrigeri