Where does OS X store your current desktop picture? I read somewhere else that it was in /Library/Caches/com.apple.Desktop. But I don't have that directory.


Starting in Lion, I don't think Lion caches desktop pictures anymore (possibly because you can have multiple at a time, for different desktops/spaces).

In that case, use plutil -p to dump the binary plist file in text form using terminal:

 plutil -p ~/Library/Preferences/com.apple.desktop.plist

The Apple delivered desktop images are stored in /Library/Desktop Pictures , so you can eliminate those (or seek those if you used an Apple picture for one or more spaces). Before Lion, the preference file that controls desktop images is text format any to find out the current image, open ~/Library/Preferences/com.apple.desktop.plist in a text editor and find the first ImageFilePath property. That will tell you the path to the current desktop image.

  • Awesome! thanks! ~/Library/Preferences/com.apple.desktop.plist is what I was looking for. And I'm still on snow leopard. – Daniel Pendergast Aug 5 '11 at 0:28
  • 1
    I'm not seeing this file on mavericks, any other ideas? – Chris Smith Mar 11 '15 at 4:12

In current versions of macOS (at least in Mojave, probably since Sierra, not sure about others) the location of the desktop pictures are stored in a SQLite database located at ~/Library/Application Support/Dock/desktoppicture.db.

I did not dig into details of the database structure but you can get the file paths with this command:

sqlite3 -readonly ~/Library/Application\ Support/Dock/desktoppicture.db 'SELECT * FROM data;'
  • I just confirmed that this is true at least since High Sierra. – zachjs Jun 1 at 2:42

If you just go into system preference, then desktop. you can simple click and drag the little image you have onto your desktop.

  • This doesn't say where the photo is stored, just that you can copy it somewhere else. – grg Apr 11 '14 at 12:16

It does allow you to retrieve the image if that is what you want. Also once you drag it to your desktop you'll know the filename and then you can use Spotlight to search for the original copy, thus finding the location that you stored it in.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .