Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I know this is possible as I did it once before.

How do you set the login background wallpaper to something else using terminal?

share|improve this question

2 Answers 2

The login screen background image is located at /System/Library/CoreServices/DefaultDesktop.jpg — you can simply sudo cp another jpeg image to replace it (though I'd recommend backing it up first!).

share|improve this answer

You can do it using AppleScript:

tell application "Finder"
     set desktop picture to POSIX file "/path/to/file.jpg"
end tell

It should be fairly easy to package this in an Automator script.

Alternatively, you can use defaults:

defaults write com.apple.desktop Background '{default = {ImageFilePath = "/Library/Desktop Pictures/Black & White/Lightning.jpg"; };}'

I haven't tested this myself, so you may have to run killall Dock before this takes effect.

Edit: more information on this and launchd

share|improve this answer
1  
The question is now to change the login wallpaper, not the desktop wallpaper. The script you provided only works for the desktop background. –  Peter Apr 12 '12 at 3:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.