Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'One way to replace a broken Desktop folder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
One way to replace a broken Desktop folder
Authored by: dethbunny on Oct 10, '07 02:09:48PM
Unless the folder was somehow transmogrified into a file (which doesn't happen) it's very likely you had a corrupt ".DS_Store" file. Occasionally Finder will create a .DS_Store that makes itself crash, or the file may become spontaneously corrupted.

You should have been able to simply type the following in Terminal to solve the problem if that was the case.
rm /Users/myusername/Desktop/.DS_Store
I have seen problems with those hidden files more than once. In one case, it was almost "viral" in nature. If you opened a folder (Folder A) that was okay, and opened another (Folder B) that crashed the finder, opening Folder A in the future would also crash the finder. This made clean-up rather difficult. I used the "find" command to delete every .DS_Store file on every mounted disk, which solved the problem. The side-effect of doing this is that all your finder views will be reset, but no loss of file data occurs. The find command was:
sudo find / -name ".DS_Store" -exec rm {} \;
If you only want to clean up a specific user's home folder or only a specific drive, change the first argument of the find command. For example:
find /Users/myusername/Desktop -name ".DS_Store" -exec rm {} \;
sudo find /Volumes/FireLite\ 100 -name ".DS_Store" -exec rm {} \;
This can also be used to remove other files that are spread out and annoying - it's invaluable for cleaning up extra "Thumbs.db" files when copying images from Windows - but be cautious. There is no Trash; there is no undelete. As with all things in Terminal, punctuation, spacing, and capitalization counts. If you don't understand why a command works, it's best not to be using said command.

[ Reply to This | # ]