Tuesday, 15 April 2014

OS X 10.9 Mavericks Desktop Wallpaper program


Wondered how you can set desktop wallpaper programmatically in Mac OS X 10.9.
Here is the answer,
in new OS X 10.9 and above wallpaper is now stored in SQLite DB.
And it is possible to change with c , c++ or objective C

More Details

Execute below shell commands and it is done

1) cd ~/Library/Application Support/Dock
2) sqlite3 desktoppicture.db
3) delete from data;
4) INSERT INTO data VALUES('/path/to/wallpaper');
5) .exit
6) killall Dock;



Tags:
OS X 10.9 Mavericks Desktop Wallpaper, change desktop wallpaper programmatically, code to change wallpaper, change wallpaper, change desktop background, os x 10.9, mavericks

No comments:

Post a Comment