Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

[Request] Proxy settings

Open ghost opened this issue 5 years ago • 11 comments

Is your feature request related to a problem? Please describe. My PC is behind a firewall with network access only from a proxy, but Bottles doesn't follow the system proxy settings, nor is there any settings for manual proxy configuration.

Describe the solution you'd like Make it so it follows system proxy settings (KDE and Gnome)

Describe alternatives you've considered Add an option for proxy server.

Additional context I'm using Flatpak version. I can use Flatseal to manually change environment variables for Bottles

ghost avatar Sep 06 '21 13:09 ghost

This is actually a key feature for China users

eailfly avatar Feb 23 '22 11:02 eailfly

Just use local repositories. Clone all repos and launch Bottles using the right env vars:

LOCAL_INSTALLERS=/path/to/programs/ \
LOCAL_DEPENDENCIES=/path/to/dependencies/ \
LOCAL_COMPONENTS=/path/to/components flatpak run com.usebottles.bottles

Remember to give permissions using Flatseal.

mirkobrombin avatar Feb 23 '22 12:02 mirkobrombin

@mirkobrombin Could you give a more detailed explanation?Which repo should I clone?

glyh avatar Feb 27 '22 04:02 glyh

https://github.com/bottlesdevs/programs https://github.com/bottlesdevs/dependencies https://github.com/bottlesdevs/components

mirkobrombin avatar Feb 27 '22 06:02 mirkobrombin

I can clone those repositories, but bottles is still unable to get to the internet to download applications such as dxvk, and it fails with an error in the console:

11:18:33 (WARNING) Connection status: offline … 
11:18:33 (INFO) Bottles Started! 
11:18:33 (WARNING) Connection status: offline … 
11:18:33 (INFO) Using local components repository at /home/zicklag/bottles/components 
11:18:33 (INFO) Using local dependencies repository at /home/zicklag/bottles/dependencies 
11:18:33 (INFO) Using local installers repository at /home/zicklag/bottles/programs 
11:18:33 (INFO) Performing Bottles checks… 
11:18:33 (INFO) Runners found:
	 - sys-wine-7.0
 
11:18:33 (WARNING) Connection status: offline … 
11:18:33 (INFO) No components found. 
11:18:34 (WARNING) Connection status: offline … 
11:18:34 (INFO) No dependencies found! 
11:18:34 (WARNING) Connection status: offline … 
11:18:34 (INFO) No installers found! 
11:18:34 (INFO) Library saved 
11:18:37 (INFO) Performing Bottles checks… 
11:18:37 (WARNING) No dxvk found. 
11:18:38 (WARNING) Connection status: offline … 
11:18:38 (WARNING) No vkd3d found. 
11:18:39 (WARNING) Connection status: offline … 
11:18:39 (WARNING) No nvapi found. 
11:18:39 (WARNING) Connection status: offline … 
11:18:39 (WARNING) No latencyflex found. 
11:18:40 (WARNING) Connection status: offline … 
11:18:40 (WARNING) Connection status: offline … 
11:18:40 (INFO) Runners found:
	 - sys-wine-7.0
 
11:18:40 (WARNING) No runners found. 
11:18:41 (WARNING) Connection status: offline … 
11:18:41 (INFO) No components found. 
11:18:41 (INFO) No dependencies found! 
11:18:41 (INFO) No installers found! 
Traceback (most recent call last):
  File "/app/share/bottles/bottles/views/new.py", line 196, in create_bottle
    dxvk=self.manager.dxvk_available[0],
IndexError: list index out of range

zicklag avatar Jul 21 '22 16:07 zicklag

I am suprised that proxychains actually works. Install and configure proxychains then proxychains flatpak run com.usebottles.bottles, the proxy works just fine.

liquorice-repo avatar Jan 06 '24 05:01 liquorice-repo

I am suprised that proxychains actually works. Install and configure proxychains then proxychains flatpak run com.usebottles.bottles, the proxy works just fine.

Does it still for work for you? They same command gives me error:

ERROR: ld.so: object '/usr/lib/libproxychains4.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

fooryo avatar Jul 03 '24 09:07 fooryo

I am suprised that proxychains actually works. Install and configure proxychains then proxychains flatpak run com.usebottles.bottles, the proxy works just fine.

While proxychains google-chrome does change my IP, proxychains flatpak run com.usebottles.bottles shows no difference in its behavior. Blocked resources still give 403 error code.

Could this be because of some Flatpak permissions?

nikableh avatar Jan 24 '25 14:01 nikableh

Just use local repositories. Clone all repos and launch Bottles using the right env vars:

LOCAL_INSTALLERS=/path/to/programs/
LOCAL_DEPENDENCIES=/path/to/dependencies/
LOCAL_COMPONENTS=/path/to/components flatpak run com.usebottles.bottles Remember to give permissions using Flatseal.

I've cloned the dependencies repo and changed url in one of the YAML files. Running Bottles like this LOCAL_DEPENDENCIES=/path/to/dependencies flatpak run com.usebottles.bottles. Unfortunately, I still get an error.

(WARNING) Failed to download [https://original-url.com/file.exe] with code: 403 != 200

Am I doing something wrong?

nikableh avatar Jan 24 '25 14:01 nikableh

https://github.com/bottlesdevs/programs https://github.com/bottlesdevs/dependencies https://github.com/bottlesdevs/components

USE LOCAL REPO NOT OK. But local repo record dependency package url, can download manually and put it to bottles/temp. For example: one dependency is "soda-9.0-1-x86_64.tar.xz", but download failed on offical website. You can find "soda-9.0-1" at repo "components,dependency,programs". Get download url "https://github.com/bottlesdevs/wine/releases/download/soda-9.0-1/soda-9.0-1-x86_64.tar.xz" at "soda.9.0-1.yml". After downloaded(need proxy), copy it to "/root/.var/app/com.usebottles.bottles/data/bottles/temp" Rerun bottles.

luoyanghero avatar Mar 14 '25 00:03 luoyanghero

Recently I meet the same problem. But After I tried, HTTP_PROXY and HTTPS_PROXY enviroment viriables are able to effect. If you need enable proxy settings, You can execute below commands:

export HTTP_PROXY=http://proxy_ip:port
export HTTPS_PROXY=http://proxy_ip:port
flatpak run com.usebottles.bottles

leojay-wang avatar Jun 18 '26 07:06 leojay-wang