Tuba icon indicating copy to clipboard operation
Tuba copied to clipboard

Question about proxy handling in Tuba

Open danialbehzadi opened this issue 2 years ago • 1 comments

Hey,

If I set HTTP proxy from GNOME control center, Tuba will use it correctly and there is no problem.

As I use my email with GNOME Online Accounts, I can't set HTTP proxy constantly, because it will fail to connect to IMAP server, so I decided to pass HTTP proxy as an environment variable to tuba.

The problem is when I do this, the result is nondeterministic. Sometimes it will use the proxy and sometimes not.

I'm using this in .desktop file:

Exec=env http_proxy="http://127.0.0.1:7070" env https_proxy="http://127.0.0.1:7070" env HTTP_PROXY="http://127.0.0.1:7070" env HTTPS_PROXY="http://127.0.0.1:7070" tuba %u

I also tried using Flatpak version like this:

flatpak run --env=https_proxy="http://127.0.0.1:7070" --env=HTTPS_PROXY="http://127.0.0.1:7070" --env=http_proxy="http://127.0.0.1:7070" --env=HTTP_PROXY="http://127.0.0.1:7070" dev.geopjr.Tuba

danialbehzadi avatar Feb 19 '24 11:02 danialbehzadi

Proxy is 100% handled by libsoup

In the past a feature request was brought up for in-app proxy settings. I personally am against that. I don't think every single app should handle (and maintain) the proxy itself - we might as well add the entirety of GNOME Settings to every single app. However, since this is causing issues, I might take another look into it.

GeopJr avatar Feb 19 '24 11:02 GeopJr