chrishunt / desktop

A decent way to change your desktop image
https://github.com/chrishunt/desktop
MIT License
250 stars 15 forks source link

Can't change system file permission on El Capitan #28

Open fullybaked opened 8 years ago

fullybaked commented 8 years ago

After upgrading to El Capitan then attempting to use desktop I was presented with the following message

It looks like this is the first time you've tried to change your desktop.

We need to make your desktop image writable before we can change it. This only needs to be done once.

$ sudo chown -h $('whoami'):staff /System/Library/CoreServices/DefaultDesktop.jpg && sudo chown $('whoami'):staff /System/Library/CoreServices/DefaultDesktop.jpg
$ sudo chmod -h 664 /System/Library/CoreServices/DefaultDesktop.jpg && sudo chmod 664 /System/Library/CoreServices/DefaultDesktop.jpg

This is despite desktop being installed prior to the update (obviously the update resets permissions on the file)

However the new SIP in El Capitan prevents you from writing to many system directories such as /usr, /System & /bin, regardless of whether or not you are root.

I don't know what the solution is, other than to possibly follow the advice here https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/El_Capitan_and_Homebrew.md and boot into recovery mode to set the permissions

chrishunt commented 8 years ago

Ah, bummer! Thanks for letting me know. I just updated to El Capitan as well, so I'll start taking a look at this.

jbrooksuk commented 8 years ago

FWIW, I've updated to El Capitan and ran the permissions stuff from the linked document (to get Homebrew to work again) and it's still not working. Stupid SIP.

adamdehaven commented 8 years ago

Any progress on this issue?

chrishunt commented 8 years ago

Any progress on this issue?

@adamdehaven https://github.com/chrishunt/desktop/pull/29 is the progress so far. :grin: