neil-morrison44 / pocket-sync

A GUI tool (Mac, Windows, Linux) for doing stuff with the Analogue Pocket
GNU Affero General Public License v3.0
669 stars 25 forks source link

On Mac, it repeatedly asks for permission to access removable drive #312

Open JonAbrams opened 2 months ago

JonAbrams commented 2 months ago

Describe the bug Since upgrading to v4.12.0, it keeps prompting for permission to read my SD card.

To Reproduce Steps to reproduce the behaviour:

  1. Open Pocket Sync v4.12.0 on MacOS 14.6.1 (Sonoma)

Expected behaviour It asks for permission at most once per session.

Screenshots See video

image

Logs Copy over the log from the folder that opens when you click the "Open Log Folder" button at the bottom of settings.

Desktop (please complete the following information):

Additional context Every time I hit "yes" a new core shows in the list. Almost like it's asking permission to read each file on my SD card.

JonAbrams commented 2 months ago

The problem has now basically gone away. It re-prompts on each load, but only twice now.

image
neil-morrison44 commented 2 months ago

Yeah that’s annoying, the message is from the OS rather than the app & I think it “learns” that the app is allowed to access the files on the drive eventually - but that resets after every update.

Annoyingly hard to workaround since the in-development version of the app never does it & any local builds will only do it once.

JonAbrams commented 2 months ago

Found this: https://forum.makemkv.com/forum/viewtopic.php?p=156277#p156277

Could it be that you need to "deep sign" the package? It's possible that each prompt is triggered by a different library in the package.

neil-morrison44 commented 2 months ago

Yeah - signing the app would help but that requires ongoing payments to be an Apple developer etc.

I thought it might be one popup per thread or something, but the app does make one initial request for the root folder on the SD card which should be a bottleneck & enable all other requests to go through without having to be manually approved.

It’s an annoying one.

JonAbrams commented 2 months ago

The app is useful enough that I can put up with it (so thanks!). I was just worried that the prompts would never go away.