VMware Communities
bernhardr
Contributor
Contributor

error loading preferences file with duplicate key

Hello,

if you have a duplicate key in the preferences file the file won't be loaded at startup. So if you change values (e.g. in the Preferences – Display dialog) the new settings will be saved but never loaded again.

For example: I had these two lines in my preferences file:

    mks.gl.allowBlacklistedDrivers = "TRUE"

    mks.gl.allowBlacklistedDrivers = "TRUE"

At workstation startup I got two messages:

    GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.

    GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.

I then looked into the latest vmware-ui-logfile in the directory /tmp/vmware-%user%/. There I found this error message:

    2016-08-12T11:11:04.285+02:00| vmui| W115: cui::PrefsBase::Load: Failed to load dictionary. File "/home/%user%/.vmware/preferences" line 41: Variable "mks.gl.allowBlacklistedDrivers" is already defined.

Maybe someone can change this error to a more appropriate behavior:

    - ignore the second value

    - ignore the first value and use the second value

Thank you.

  Bernhard

Reply
0 Kudos
0 Replies