sveinbjornt / Platypus

Create native Mac applications from command line scripts.
https://sveinbjorn.org/platypus
BSD 3-Clause "New" or "Revised" License
2.84k stars 171 forks source link

Full Disk Access does not stay checked #247

Open mlcampbe opened 1 year ago

mlcampbe commented 1 year ago

I have an app created to run a bash shell script that starts my VPN connection. The shell script runs just fine by itself with no prompt for access to files/folders. However, when I created an app using Platypus it always prompts for access to my documents, desktop, and downloads folders. I have given the app full disk access in the privacy and security section but that setting does not stay checked. When I run the app I can see that the full disk access option is getting turned off automatically. Any thoughts as to what is going on?

sveinbjornt commented 1 year ago

Apple's macOS being a bug-ridden pain in the ass? That would be my guess, but for the record, what macOS version are you using?

mlcampbe commented 1 year ago

My MacOS is version 13.2.1.

A couple of notes though:

  1. This was working fine until a recent change by our IT department to do some security posturing checks for IT compliance during the VPN connection. It is these checks that are causing the problems.
  2. Running the underlying shell script by itself from the terminal also does the security checks but does not have any prompts for file/folder access.
  3. The shell script in turn runs /opt/cisco/anyconnect/bin/vpn to start the VPN if that tells you anything.
gingerbeardman commented 1 year ago

One thing you could try is removing the settings from Privacy/Security, quitting and restarting System Prefs, then reading. Sometimes if the app name has not changed but the bundle id has System prefs can get a bit confused. Quitting and restarting it forces it to refresh its cache.

mlcampbe commented 1 year ago

One thing you could try is removing the settings from Privacy/Security, quitting and restarting System Prefs, then reading. Sometimes if the app name has not changed but the bundle id has System prefs can get a bit confused. Quitting and restarting it forces it to refresh its cache.

That was a great thought but no such luck. I removed all of the settings and restarted but still get the same prompts everytime.

getthething commented 10 months ago

Sorry to resurrect an old thread, but I'm having this issue as well. I granted full disk access, yet every time the script runs via my Platypus app, it asks for permission to access the documents folder. Two differences from OP. I'm running 14.1.1 and my full disk permission toggle stays on, but it still asks me every time. If it makes a difference, I have the app set to run at login.

Thanks!

gingerbeardman commented 10 months ago

@getthething try this:

  1. delete permissions from disk access etc in System Preferences/Settings
  2. quit and restart System Preferences/Settings do not skip this step as it is the most important!
  3. re-add the permissions

That should work.

Reason is changes to apps cause the permissions to become detached, even though they look fine.