chef-chrome icon indicating copy to clipboard operation
chef-chrome copied to clipboard

Chrome 85: Master Preferences Path Changes

Open dylanlive opened this issue 4 years ago • 0 comments

The Master Preferences Path on Chrome 85 for Windows has changed to C:\Program Files\Google\Chrome\Application\master_preferences

As a result: Trying to call chrome_version for Chrome 85 on Windows will return nil.

Source, the release notes:

Chrome 64-bit on Windows will be installed in "Program Files" instead of "Program Files (x86)" New installations of 64-bit Chrome will be installed in "%ProgramFiles%" on Windows instead of "%ProgramFiles(x86)%". Existing installations won't be impacted.

As a result, default['chrome']['master_preferences_windows'] will need an update to C:\Program Files\Google\Chrome\Application\master_preferences, but probably also be backwards compatible https://github.com/dhoer/chef-chrome/blob/master/attributes/default.rb#L4

Temporary workaround: In your cookbook's attributes/default.rb (or whatever you've named it named), just override it: default['chrome']['master_preferences_windows'] = 'C:\Program Files\Google\Chrome\Application\master_preferences'

dylanlive avatar Sep 17 '20 18:09 dylanlive