Zaz-pip vs Proxy #1

Closed
opened 2 years ago by sintaxe · 6 comments
sintaxe commented 2 years ago

At my job I use Libreoffice portable on Windows 10 and I don't have administrator permission, and the internet is via proxy.

To successfully use zaz-pip, I need to add this code below, in the main.py file of the file ZAZPip_v0.7.0.oxt

import os

PROXY_HOST = "100.00.0.1" #proxy host
PROXY_PORT = "8080" #port
PROXY_AUTH_USER = "windows_user"
PROXY_AUTH_PASS = "windows_password"

os.environ['http_proxy'] = f'''http://{PROXY_AUTH_USER}:{PROXY_AUTH_PASS}@{PROXY_HOST}:{PROXY_PORT}'''
os.environ['https_proxy'] = f'''http://{PROXY_AUTH_USER}:{PROXY_AUTH_PASS}@{PROXY_HOST}:{PROXY_PORT}'''

Would it be possible to add proxy options in zaz-pip configuration?

At my job I use Libreoffice portable on Windows 10 and I don't have administrator permission, and the internet is via proxy. To successfully use zaz-pip, I need to add this code below, in the main.py file of the file ZAZPip_v0.7.0.oxt ```python import os PROXY_HOST = "100.00.0.1" #proxy host PROXY_PORT = "8080" #port PROXY_AUTH_USER = "windows_user" PROXY_AUTH_PASS = "windows_password" os.environ['http_proxy'] = f'''http://{PROXY_AUTH_USER}:{PROXY_AUTH_PASS}@{PROXY_HOST}:{PROXY_PORT}''' os.environ['https_proxy'] = f'''http://{PROXY_AUTH_USER}:{PROXY_AUTH_PASS}@{PROXY_HOST}:{PROXY_PORT}''' ``` Would it be possible to add proxy options in zaz-pip configuration?
Owner

Interesting...

maybe is better if I add config option for this cases, a dialog box with config for proxy. I like this idea.

Interesting... maybe is better if I add config option for this cases, a dialog box with config for proxy. I like this idea.
Poster

Any solution to add proxy settings would be fantastic.
It would help other users who have internet via proxy and don't know how to solve this in Zaz-pip.

Any solution to add proxy settings would be fantastic. It would help other users who have internet via proxy and don't know how to solve this in Zaz-pip.
elmau self-assigned this 2 years ago
Owner

ok, add in next release 0.8.0, I hope in next week.

ok, add in next release 0.8.0, I hope in next week.
Owner

ok, add button for config proxy, but, I don't used proxy, so, you can help validate this.

Version 0.8.0 in branch develop.

https://git.cuates.net/elmau/zaz-pip/src/branch/develop/files/ZAZPip_v0.8.0.oxt

ok, add button for config proxy, but, I don't used proxy, so, you can help validate this. Version 0.8.0 in branch `develop`. https://git.cuates.net/elmau/zaz-pip/src/branch/develop/files/ZAZPip_v0.8.0.oxt
Poster

The code worked correctly.
Thank you very much.

What I noticed is that the button images are not fitting the size of the buttons. see the image

Linux Mint x64 Cinnamon 20.1 X11

The code worked correctly. Thank you very much. What I noticed is that the button images are not fitting the size of the buttons. see the image ![](https://i.postimg.cc/QC2WXpM0/erro.pnghttps://) Linux Mint x64 Cinnamon 20.1 X11
Owner

ok...

In my PC I see correctly, but I'll change size icons, thanks.

ok... In my PC I see correctly, but I'll change size icons, thanks.
elmau referenced this issue from a commit 1 year ago
elmau closed this issue 1 year ago
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.