On Jan 28, 2014, at 3:13 AM, Stroller <stroller at stellar.eclipse.co.uk> wrote: > Having recently upgraded to Mavericks, one of the apps I use regularly is crashing a lot, so I want to remove the Preferences (and Application Support) files and see if it behaves any better. Devs and other users all tell me that this build works for them on Mavericks. > > I created a directory in my homedir and moved the files in the normal way: > > mkdir MyPrefs > ls Library/Preferences/*appname*.plist > mv Library/Preferences/*appname*.plist MyPrefs > > But as soon as I restarted the app, it had remembered my details, and was trying to log on as me to my default server - not what I expected! > > When I checked again, Library/Preferences/*appname*.plist was present, and it was exactly the same¹ as the plist I'd just backed up. > > I think I noticed this behaviour under Lion 10.7 - it annoyed me then, but I ignored it for the time being. With Mavericks I feel a bit more committed to OS X, and I want to find out what's going on - could anyone possibly explain please? > > I assume that the app is recovering the preferences from a cache directory or something - where is it, and what purpose does it serve, please? > ¹ Near enough - I had to `plutil -convert xml1 *plist` and run a diff, to find that the only change was today's date, seeming to indicate when the app had been last run. I.E. the preferences file had been re-created when I launched the app, and saved when I quit it. I don't Know all the answers here... or maybe not the correct ones; just a bunch. (I'm a SysAdmin, not a Developer, who has been retired since Lion was released.) 1- There ARE significant differences between Lion and Mountain Lion with some things. 2- plutil no longer exists under Mavericks. (I use Text Wrangler.) --- I'm not completely certain what the fact that Apple pulled plutil from Mavericks implies. 3- Memory management is "radically" changed in Mavericks -- http://www.apple.com/osx/advanced-technologies/ One thing which I see as a result of this is that ?Many?Certain? Apps -- DO NOT QUIT. That is to say when you quit an App, it does not clear itself from Memory -- but hangs around "just in case" -- this is part of the "instant on" effect. Related to this is the "memory compression" mechanism. All of which is to say -- yeah, when you quit an app, it doesn't "go away." -- Part of what doesn't go away is the "plist" information. ?Most?Many? Apps load their plist information into memory when first launched and will use that copy, not the copy on disk. WHEN the disk copy is written back (if at all) to disk is unique to the individual app. There is also a mechanic which causes an app to "create" a missing plist file based on internal information - i.e. defaults. This is the desired effect when you remove the .plist file -- the assumption is that the file is corrupt, not that the values are "wrong." But since there are "more current" values in memory, it uses those. And again, this is compounded by the "fast reboot" issue -- Many Apps as well as OSX itself attempt to "cache" themselves when they quit, to allow them to "reload faster." There are a number of options relating to this. Preferences -> General - check "Close windows when quitting an application" -- a "negative" option. The explanation "When selected, open documents and windows will not be restored when you re-open an application." Then when you reboot, a box will pop-up asking, and I'm paraphrasing, check if you want to "remember your open apps. " So, one thing which I do any time I am trying to clear an app -- after doing what you did (deleting the existing plist files, etc. -- POWER CYCLE (not reboot!). There are situations where you do NOT want to empty the trash first, (deleting system plist files, for example). Other than that, I also periodically simply erase ~/Library/Caches (and let it be rebuilt on power cycle. I don't know that any of this successfully explains your issue, but hopefully it helps. T.T.F.N. William H. Magill # iMac11,3 Core i7 [2.93GHz - 8 GB 1067MHz] OS X 10.9 # Macmini6,1 Intel Core i5 [2.5 Ghz - 4GB 1600MHz] OS X 10.8.5 magill at icloud.com magill at mac.com whmagill at gmail.com