Show hidden files won't stick

Hi,

I'm setting up an i7 Mac Mini with Mavericks and trying to show hidden files. Using Terminal I do the old


$ defaults write com.apple.finder AppleShowAllFiles TRUE

$ killall Finder


But hidden files are still invisible.


When I try to read back it reports:


The domain/default pair of ([...]com.apple.finder, AppleShowAllFiles) does not exist


I've opened the plist up in XCode and every time I add it there it disappears as soon as I issue the `killall Finder` command.


Anybody know why this might be?

Posted on Jan 5, 2014 11:45 AM

Reply
26 replies

Jan 8, 2014 1:43 PM in response to Tristian

OK success.


  1. Lanuch Activity Monitor
  2. find 'cfprefsd'
  3. Force quit 'cfprefsd'
  4. In Terminal: defaults write com.apple.finder AppleShowAllFiles -bool TRUE && killall Finder


And they stick.


I don't know know if the 'AppleShowAllFiles' need to be applied before cfprefsd starts back up again or if it started as a result of stting 'AppleShowAllFiles'. I also don't know if force quiting cfprefsd does any damage to the system.


Maybe there's a more elegeant way to address this.


More info on cfprefsd: http://hints.macworld.com/article.php?story=20130908042828630

Jan 8, 2014 3:11 PM in response to Tristian

Nice find. Following the snake through developer docs yields this one https://developer.apple.com/library/mac/releasenotes/DataManagement/RN-CoreFound ationOlderNotes/ which states:


CFPreferences Plist Files

The on-disk property list files used by CFPreferences have always been a private implementation detail, but in previous releases, directly modifying them has mostly worked (though there are some potential data-loss issues for applications that do so, even on previous systems). In 10.8 and later, the CFPreferences agent process (cfprefsd) will cache information from these files and asynchronously write to them. This means that directly modifying plist files is unlikely to have the expected results (new settings will not necessarily be read, and may even be overwritten). You should use the NSUserDefaults or CFPreferences APIs, or the defaults(1) command, to interact with the preferences system.

Jan 8, 2014 11:55 PM in response to baltwo

That last bit is interesting "defaults(1) command, to interact with the preferences system." because thats what was being used or have I misunderstood that.


Also I have two systems here running Mavericks, the older one responds as expected when using defaults write com.apple.finder AppleShowAllFiles -bool TRUE but its this new(er) machine that's been having the trouble. It also seems to be this (may main) user account thats affected.

Jan 9, 2014 2:45 AM in response to Tristian

Just as a bit more information...


I wanted to add QucikLook text selection:

defaults write com.apple.finder QLEnableTextSelection -bool true; killall Finder


but it wouldn't stick until I again force quit cfprefsd. Obviously for this particular setup I'm going to have to do that everytime. It's just odd that it's different to my other mac running the same OS. I wonder if there is switch somewhere that changes the behaviour.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Show hidden files won't stick

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.