Disk Access Permissions for the Debugger

Mac OSX specific forum
User avatar
DannyWeijermans
New User
New User
Posts: 6
Joined: Thu Aug 25, 2022 10:10 pm
Contact:

Disk Access Permissions for the Debugger

Post by DannyWeijermans »

I'm not 100% sure that it's a bug,
but when using the latest 6.10 beta 4 version of PureBasic in Sonoma 14.3.1 (latest)
the debugger doesn't ask for Full Disk Access (or specific Files and Folders access
when run.
I noticed this behaviour when using AppleScript in PureBasic
to obtain the 'root disk-name' (no other way I think..)
After creating the executable,
the executable DOES ask for these permissions..
Any thought on this?
Many thanks to Shardik for helping me solve this puzzle..
Regards,
Danny Weijermans - The Netherlands
Fred
Administrator
Administrator
Posts: 16679
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Disk Access Permissions for the Debugger

Post by Fred »

I have no idea, it should be prompted automatically I guess.
User avatar
DannyWeijermans
New User
New User
Posts: 6
Joined: Thu Aug 25, 2022 10:10 pm
Contact:

Re: Disk Access Permissions for the Debugger

Post by DannyWeijermans »

Hi Fred!
That's the strange thing:
it doesn't prompt automatically
when using the Debugger..
User avatar
mk-soft
Always Here
Always Here
Posts: 5390
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Disk Access Permissions for the Debugger

Post by mk-soft »

Take a look at macOS privacy and security.
In my case, the PureBasic IDE has folder permissions on different folders.
When the code is started under PureBasic with debugger, it has the same permissions as the PureBasic IDE. So the permission is inherited.
As Executable App the permission must be granted first.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
DannyWeijermans
New User
New User
Posts: 6
Joined: Thu Aug 25, 2022 10:10 pm
Contact:

Re: Disk Access Permissions for the Debugger

Post by DannyWeijermans »

Aha! I think I know where the problem was:
I also still had PureBasic 5.73 in my apps,
and it was 'overruling' the disk permissions macOS privacy and security.
Isn't it possible to have both apps in Sonoma?
I noticed that files kept opening in 5.73,
even if I set it in file-info to open in PureBasic 6.10 beta 4..
I now removed the old PB,
and macOS privacy and security
allows me to give Full Disk Access to PB6..
User avatar
mk-soft
Always Here
Always Here
Posts: 5390
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Disk Access Permissions for the Debugger

Post by mk-soft »

I also have many versions of PureBasic in different subfolders. The problem is all have the same APP name and so the files are always started with the first found IDE (so the oldest).
I have not found a solution either, except to rename the PureBasic.app to PureBasic-vXXX.app.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply