Help, Accident, How to restore plist file?

Discussion in 'macOS' started by cmF, Feb 28, 2009.

  1. cmF macrumors member

    cmF

    Joined:
    Nov 19, 2008
    Location:
    California
    #1
    So I tried to change the login screen background on my macbook using this mini tutorial. I tried using this method
    but I must have entered the image path wrong and now I just get a blank blue login screen background and I dont know how to change it. I'm pretty sure the only file i changed is com.apple.loginwindow.plist

    How do I restore it to factory settings? Thanks!
     
  2. miles01110 macrumors Core

    miles01110

    Joined:
    Jul 24, 2006
    Location:
    The Ivory Tower (I'm not coming down)
    #2
    try

    sudo defaults write /Library/Preferences/com.apple.loginwindow DesktopPicture "/System/Library/CoreServices/DefaultDesktop.jpg"

    Edit: if that works, you could just go into the System/Library/CoreServices directory, copy the DefaultDesktop.jpg file to somewhere else, removie it, put your own image in there and rename it "DefaultDesktop.jpg" (this is what you are doing if you follow method #1 in your link). That way is probably better, as who knows what will happen if the file you modify your plist to use as the desktop ever changes location.
     
  3. cmF thread starter macrumors member

    cmF

    Joined:
    Nov 19, 2008
    Location:
    California
    #3
    It didn't work :mad:

    I opened the file up in dreamweaver and this is what it reads

    [​IMG]
    can I just use the same plist file my girlfriend has on her macbook? there were no changes made to hers.
    [​IMG]

    If not,
    Is there anyway to revert the com.apple.loginwindow.plist somehow?
     
  4. miles01110 macrumors Core

    miles01110

    Joined:
    Jul 24, 2006
    Location:
    The Ivory Tower (I'm not coming down)
    #4
    That'd probably work. You could also try

    sudo defaults write /Library/Preferences/com.apple.loginwindow DesktopPicture "/System/Library/CoreServices/DefaultDesktop.jpg"

    (by the way I just noticed I didn't include the quotes in my earlier post- did you try it with the quotes? Sorry about that.)
     
  5. cmF thread starter macrumors member

    cmF

    Joined:
    Nov 19, 2008
    Location:
    California
    #5
    Nothing is working!!!

    I think I really just need to revert back to a fresh com.apple.loginwindow.plist file.

    But how?!?!
     
  6. cmF thread starter macrumors member

    cmF

    Joined:
    Nov 19, 2008
    Location:
    California
    #6
    Nevermind, I figured it out. I deleted the com.apple.loginwindow.plist
    file to get a fresh copy.

    It would have pointed to this: "/System/Library/CoreServices/DefaultDesktop.jpg" BUT I totally forgot I renamed the jpg file using this code I got from the tutorial.
    so I changed it back
    Then it pointed back to the original image, then, like you said, I overwrote that with the jpg I really wanted to use. Thanks for the help miles
     

Share This Page