Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

My desktop background reverts to previous one upon restart

Hi,

I got my MBP with OSX 10.8.4 this May, and since changed my desktop background once to another image.


Now, whenever I want to change to another one, OSX accepts the change, but whenever I reboot or even change the user ( only 1 present, which is me = admin, though tried to log out and in to see what happens), OSX reverts to the first image and discards any changes made to the background.


Strange enough: when I go to the PrefPane and see what background has been selected, it is the new one! But the old one is showing up nevertheless.


What I tried so far:

I deleted the file that was selected as the background image ( it still keeps showing up as the background! )

I deleted the plists com.apple.desktop & com.apple.systempreferences, nothing changed


this is quite annoying!

i dont think i have anything on my machine that would interfere with the background image... no wallpaper programs & stuff like that.


any help is much appreciated!! thanks!



PS: no I dont want to use geektool etc. for things like that. it is an "unclean" solution to this problem which should not appear at all.

MacBook Pro (15-inch Mid 2012), OS X Mountain Lion (10.8.4)

Posted on Jul 21, 2013 11:12 AM

Reply
8 replies

Jul 21, 2013 2:04 PM in response to OwlOfBlues

  1. I'm not 100% positive but I think there is (or was at one time) a bug in Mountain Lion with auto login and the desktop image. If you use auto login, try disabling it.
  2. I'm assuming you restarted after deleting the .plist files.
  3. By experimenting with my desktop picture just now, and then checking the plist files in the finder sorted by date modified, it appears that com.apple.spaces.plist might be involved as well. Try deleting that too and restarting.
  4. you could try a test user account and see if the problem persists. Then it would implicate some software you have added that does indeed interfere with the desktop. Then find it and remove it.
  5. I have tried to suggest only "clean" solutions!

Jul 21, 2013 2:21 PM in response to arthur

Thanks for answering.


What I have done now:

Deleted plists desktop, systempreferences & also spaces

disabled auto login

changed to new background image

reboot


result:

old picture disappeared, but only stock-osx picture shows up on startup.


still have to test another user now.


also:

when i open the prefpane it clearly shows me the picture i want to have. clicking on it in the image selection part does not change the image! only when selecting a different one it changes to that so what i think is that the OS 'thinks' it is displaying the right image...


i am really grateful for your help 🙂

Jul 21, 2013 2:50 PM in response to arthur

UPDATE:


by now I have set up another user and setting the background & switching users works just fine with this one, STILL no change with my actual account (and i really cant afford to lose all my settings etc on this one, it'd be horrible to get it up and running again as it is now 😟 )


any other suggestions what it might be, another possible solution?



EDIT:

"clean" solutions aside, is there a way of brute forcing osx to change/ set the background on startup? i was thinking of something like an automated applescript on startup but really i have never written anything with applescript ( i will be getting into this but as of now i can only display text wich is quite lame frankly)

Jul 21, 2013 3:07 PM in response to OwlOfBlues

Please read this whole message before doing anything.

This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches.


Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.

Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.


Test while in safe mode. Same problem?


After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

Jul 21, 2013 3:12 PM in response to OwlOfBlues

Try the following:


Double check your settings at the bottom of the desktop picture window.

User uploaded file

Mountain Lion Recovery

Boot up from your computer by holding down the command+r keys. This will take you to the recovery drive.

Select Disk Utility & hit Return.

In Disk Utility select the HD on the left & click on Repair Disk (bottom right).

Repair permissions.


Option key>Finder>Library>Preferences. Delete the plist files your previously mentioned.

Restart your computer and empty the trash. Try your desktop pictures. Please post back the results.














User uploaded file

Jul 21, 2013 4:10 PM in response to Baby-Boomer-USofA

@Baby Boomer


i forgot to mention that i also tried to fix permissions twice, nevertheless i did it again, same result, still not working :/


i will be booting to safe mode now and i will report if there's any difference.


UPDATE:


It seems to work in Safe Mode !


now what does that say about my problem? a program interfering? how do i find out which one it is?

Jul 21, 2013 7:22 PM in response to OwlOfBlues

Please read this whole message before doing anything.

This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.

Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac.


These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing.


Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects.


Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands.


Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.


Launch the Terminal application in any of the following ways:


☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)


☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.


☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.


When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign.


Step 1


Triple-click the line of text below on this page to select it:

kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' | open -f -a TextEdit

Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). A TextEdit window will open with the output of the command. If the command produced no output, the window will be empty. Post the contents of the TextEdit window (not the Terminal window), if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.

Step 2


Repeat with this line:

{ sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|org\.(amav|apac|cups|isc|ntp|postf|x)/{print $3}'; sudo defaults read com.apple.loginwindow LoginHook; sudo crontab -l; } 2> /dev/null | open -f -a TextEdit

This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.


Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step.


Step 3

{ launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)/{print $3}'; crontab -l 2> /dev/null; } | open -f -a TextEdit

Step 4

ls -1A /e*/{la,mach}* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts .la* 2> /dev/null | open -f -a TextEdit

Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting.


Step 5

osascript -e 'tell application "System Events" to get name of every login item' | open -f -a TextEdit

Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output.


You can then quit Terminal.

My desktop background reverts to previous one upon restart

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