actuallymentor / battery

CLI for managing the battery charging status for M1 Macs
MIT License
3.22k stars 140 forks source link

Use the Mac OS proxy settings #243

Open johannes-mathes opened 4 months ago

johannes-mathes commented 4 months ago

Is your feature request related to a problem? Please describe. My Mac has a proxy configured in Mac OS system preferences. The HTTP_PROXY environment variable and HTTPS_PROXY are set accordingly. The battery GUI, however, ignores those settings and simply can't connect. It is described in https://github.com/actuallymentor/battery/issues/168 .

Describe the solution you'd like For users behind a (corporate) proxy, the GUI and the battery command line tool should obey the Mac OS system preference and use a proxy.

Describe alternatives you've considered The error message could state that for the first run there must be a direct internet connection without proxy.

Additional context If running with a proxy, I really did not manage to get this tool to work (even using command-line setup and what not). I finally saw the closed bug ticket and then tried to connect without proxy and it worked like a charm.

I think there are a lot users out there behind a (corporate) proxy.