Skip to content
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

Need "Photos" entitlement to sync Pictures library on Big Sur #158

Open
gsfriedman opened this issue May 11, 2021 · 4 comments
Open

Need "Photos" entitlement to sync Pictures library on Big Sur #158

gsfriedman opened this issue May 11, 2021 · 4 comments

Comments

@gsfriedman
Copy link

SyncThing does not assert the Photos entitlement which ultimately means that a user cannot set up anything under {user}\Pictures as a syncable folder.

Resilio had a similar issue which was discussed here: https://forum.resilio.com/topic/72105-resilio-sync-for-mac-doesnt-have-entitlements/

When that entitlement is present, the user will see a security prompt allowing them to approve the app's access.

Possible to add to SyncThing?

@gsfriedman
Copy link
Author

@xor-gate
Copy link
Member

This is probably related to issue #95. We indeed need to test if some folder are accessible and then have the security prompt of macOS so you can allow those folders.

I have reproduced this by adding Pictures as a shared folder. And it seems to be manually fixable by adding it to Full Disk Access in Privacy.

Screenshot 2021-05-11 at 19 55 15

Screenshot 2021-05-11 at 19 55 21

Screenshot 2021-05-11 at 19 56 23

@poppybank
Copy link

Pretty easy to fix this.

  1. Open the project in Xcode
  2. Select the syncthing project in the lift on the left and choose Signing and Capabilities in the view on the right
  3. Click the + next to Capability
  4. Choose App Sandbox and double click it to add
  5. In the App Sandbox area that appears, go to File Access and make the Pictures Folder Read/Write. You probably want to enable other types too so things like movies and music can be synced.

This will add a Syncthing.entitlements file to the project that needs to be checked in too.

@gsfriedman
Copy link
Author

Confirmed that explicitly adding Syncthing to "Full Disk Access" addresses the issue. Thanks for pointing this out!

Including the Photos library entitlement as described above would both simplify the process for the user (they'd get an approval dialog) and would allow the user to grant lesser privileges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants