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

Folder access automatically denied on signed app #69

Open
zinne opened this issue Nov 13, 2023 · 6 comments
Open

Folder access automatically denied on signed app #69

zinne opened this issue Nov 13, 2023 · 6 comments

Comments

@zinne
Copy link

zinne commented Nov 13, 2023

Everything works fine. The permission popup appears in my dev env. But when I build the app with electron-packager and sign my app the permission popup does not appear. The log just returns a denied status.
(entitlements are setup correctly)
Can someone confirm that it works on the latest MacOS with a real signed app?

MacOS Sonoma 14.1
electron 26.4.2

@benrapport
Copy link

having this issue as well!

@sumersao
Copy link

hey @zinne I can confirm (for anything working in dev it works in production as well w/ a signed app). I was having this issue at first, but entitlements were my issue. Did you figure it out?

@zinne
Copy link
Author

zinne commented Dec 13, 2023

@sumersao no, didn‘t made it. Solved my situation just by using a save dialog.

@sumersao
Copy link

@zinne interesting. What permissions were you trying to use explicitly? fwiw the askForContactsAccess() didn't work for me in dev or prod, so I did a workaround by reading the resource directly and checking permissions that way. But other things worked

@zinne
Copy link
Author

zinne commented Dec 13, 2023

@sumersao I was trying to save a file to the Desktop.

@theDevelopper
Copy link

Have you defined the NSDesktopFolderUsageDescription property in the info.plist?

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

No branches or pull requests

4 participants