RHEL7 google-chrome --pac-url

Issues related to applications and software problems
Post Reply
User avatar
warron.french
Posts: 400
Joined: 2014/03/27 20:21:58

RHEL7 google-chrome --pac-url

Post by warron.french » 2019/09/20 19:15:29

Does the switch-argument, --pac-url, not work with google-chrome unless the Local System Proxy on the machine is configured with the NetworkManager service enabled and started?

We have some isolated networks that require configurations involving the use of proxies, we have a url that offers the PAC file for more centralized control.

When clicking on the icon for Google Chrome under Applications > Internet the browser doesn't seem to work with --pac-url="http://some_server.com/the_proxy.pac" being set within the google-chrome.desktop file (after I alter that file), especially with NetworkManager service stopped (not running).

We have problems with NetworkManager breaking our network stack, so we have had it disabled since RHEL6.4, and applied the same strategy to RHEL7 baselines as well.

I posted a question on Google Forums specifically for Google Chrome and nobody replied.
Thanks,
War

User avatar
warron.french
Posts: 400
Joined: 2014/03/27 20:21:58

Re: RHEL7 google-chrome --pac-url

Post by warron.french » 2019/09/24 19:44:47

I have learned, for anybody else that may eventually follow in these steps, that unlike Firefox, google-chrome requires NetworkManager.service to be enabled and more importantly running.

Without NetworkManager running there is absolutely no way to set a proxy for use.

I have learned that dconf and gsettings don't seem to have a common-point of interest where the schemas, keys and values can be shared and interacted between the two.

I can set options with dconf, and I cannot find the schemas & keys set accordingly using gsettings. If I use gsettings, the schemas and keys of dconf won't respect the settings.

In other words, if I do the following:

Code: Select all

gsettings set org.gnome.system.proxy  autoconfig-url='http://proxy1.com/proxy1.pac'
gsettings set org.gnome.system.proxy mode='auto'

dconf update
Then dconf dump /system/proxy/ will not display the results:

Code: Select all

[/]
autoconfig-url='http://proxy1.com/proxy1.pac'
mode='auto'
Likewise, if I use dconf-editor to modify the settings, I CAN do, dconf dump /system/proxy/, and see:

Code: Select all

[/]
autoconfig-url='http://proxy1.com/proxy1.pac'
mode='auto'
... but then gsettings get will not see the values set.

I need a means for delivering a file to set system-wide parameters on various systems on isolated networks such autoconfig-url and mode and I need to be able to automate the implementation using ansible or puppet; preferably ansible.
Thanks,
War

Post Reply

Return to “CentOS 7 - Software Support”