-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full disk access using macOS privacy protection support #95
Comments
Hi @var314, thanks for reporting this. This is a real problem, I think most people just have an Syncthing folder in their home directory which is why it doesn't get any problems. iTerm2 has documented it, not sure how it is implemented yet as I'm trying to find it in the source and apple developer docs which is a big pile. As reference for myself https://gitlab.com/gnachman/iterm2/wikis/fulldiskaccess. |
As a reference, I asked the author of iTerm 2
Answer
|
This thread is really interesting: https://forums.developer.apple.com/thread/107546 What did you end up doing for this related issue with new Mojave policy ? Thanks |
Hi,
macOS Mojave introduced additional protection aimed towards privacy. It means that application does not have access to things like camera, contacts, photos library, etc. by default. In case of photos library, the files and folder permissions seems right, there is no ACLs and still the Syncthing cannot scan the folder with an error:
Interestingly and confusingly, the .stfolder is created. The Console.app tells a little more if someone know what to look at:
There are two workarounds (at least two known to me):
Run Syncthing executable from terminal.
Note, that the below form will not work, it will have the same issue as Syncthing started by double click or auto started:
Go to Sytem settings -> Security & privacy -> Privacy, choose Full access to disk category and add Syncthing (the names may be different, I have polish version and translated back to english). This will work with Syncthing started in any way.
Note, that adding Syncthing to just Photos category is not possible. From what I have read the application must declare in a manifest that it requires the access and then explicitly ask user to grant it.
So I think that ideally Syncthing would ask user for permission to access photos library in such case. Less ideally, the error would mention that this may be the issue with macOS privacy protection (I do not know if this is official name). Otherwise it is really hard to find out what is going on. Especially for someone that do not know about that macOS feature.
The Syncthing-macos version is 1.0.0-2, Syncthing version is 1.0.1, macOS is Mojave version 10.14.3
The text was updated successfully, but these errors were encountered: