corectl.app icon indicating copy to clipboard operation
corectl.app copied to clipboard

Running in proxy environment causes spinner

Open databus23 opened this issue 7 years ago • 3 comments

Trying to to access the corectl menu icon always gives a busy spinner in my corporate network. We have a mandatory http(s)_proxy and no direct internet connectivity. Seems like some hanging network call is blocking the UI thread, which is not good in general.

It works when I switch to a proxy-free internet-connected network.

Would be awesome if corectl could pick up the proxy from settings (not only static settings but also auto configured PAC-file based ones) for network calls.

databus23 avatar Nov 23 '16 13:11 databus23

Seems like its the update checks. When I start it in a proxy-free environment it continues to work in a proxy environment until I hit "Check for udpates" or restart the app.

databus23 avatar Nov 23 '16 13:11 databus23

+1

urfuwo avatar Nov 23 '16 14:11 urfuwo

Ok looking into this some more it seems like this comes from the shell scripts that are executed from the swift app. When I add this snipplet to the top of some of the bash scripts the spinner goes away:

[ -f /usr/local/share/proxy_settings.sh ] && source /usr/local/share/proxy_settings.sh

I had to add it to the following files:

check_blobs_version.command
check_corectl_app_version.command
check_corectld_version.command
fetch_latest_iso_alpha.command
fetch_latest_iso_beta.command
fetch_latest_iso_stable.command
update_corectl_blobs.command

databus23 avatar Nov 23 '16 20:11 databus23