gingerbeardman / stapler

My take on the classic Macintosh app Stapler (with a little bit of LaunchList)
https://blog.gingerbeardman.com/2024/08/10/stapler-i-remade-a-32-year-old-classic-macintosh-app/
MIT License
215 stars 7 forks source link

Does not prompt for permission in some places. #6

Closed paalb closed 1 month ago

paalb commented 1 month ago

I get a prompt and it opens the file in downloads. But not the one in miniconda3.

Screenshot 2024-08-11 at 21 37 40

And not the files in Diverse

Screenshot 2024-08-11 at 21 19 03 Screenshot 2024-08-11 at 21 25 53
gingerbeardman commented 1 month ago

You need to give the app extra access permissions in System Settings > Privacy & Security > Files & Folders

or, after you've inspected the code and are comfortable the app doesn't do anything untoward, you could go to System Settings > Privacy & Security > Full Disk Access and add it there so you're never bothered again for this app.

By default I only gave it access and the ability to prompt for access to the most common recommended folders. That's basically Downloads, and the user selected locations.

Without the additional permissions might see different behaviour adding files through the file selector than drag and drop.

I've improved the README file with some of this info.

invig commented 1 month ago

Love the idea, thanks for open sourcing!

gingerbeardman commented 1 month ago

Something odd going on here, as I am developing it on Sonoma.

Could it be that Stapler is running under App Translocation? Whilst it's not running, move it out of /Applications (to, say, ~/Documents) and then back to /Applications and then try again. Let me know.

Also, you will probably need to redo any docs/items that were created before granting permission.

Urgh, I do hate modern macOS "security" focus, it's so offensive to users and developers alike.

Here I am running a Google Sheets "Save to Dock" web app @invig (double-click to launch coming in 1.2)

https://github.com/user-attachments/assets/cead2216-4bb3-4aa2-a79f-82341e7d27cc

gingerbeardman commented 1 month ago

I'm going to add com.apple.security.files.all to the app entitlements https://github.com/gingerbeardman/stapler/commit/88ee5380c3b808eb9e870a7c68e22b547e89eb0f

This won't allow it on the Mac App Store, but I have no intention of submitting it so...

Will release in 1.2

gingerbeardman commented 1 month ago

Added in 1.2 https://github.com/gingerbeardman/stapler/releases/tag/1.2