11

I have a Qt (4.8.5) based application running on OS X 10.9. The app uses QSettings class specifying app name and company. Plist file is created by QSetttings under:

~/Library/Preferences/com.company_name.app_name.plist

The app works pretty fine in terms of saving/restoring preferences. Then I quit the app, delete *.plist file, run the app again and voila - it restored its preferences! Based on what what file? Hot to delete it?

I was unable to find the answer in the Qt doc for QSettings class.

Kuba hasn't forgotten Monica
  • 95,931
  • 16
  • 151
  • 313
Thomas
  • 303
  • 2
  • 7

1 Answers1

18

In 10.9 (and higher) .plist files are being cached. So once you have deleted a .plist file, the cache must be refreshed. Either log out or execute the following command in Terminal:

killall -u yourusername cfprefsd
GeekUser
  • 410
  • 4
  • 12