OpenXTalkPaul wrote: ↑Sat Jan 18, 2025 2:21 am
But normally you would need to be elevated privileges / Root user to run a shell script like the one you've go there, on newer macOS you need to do even more, reboot with disable SIP and re-mount system volumes as read-write to be able to run that.
You wouldn't need to have root permissions on linux, and at least MacOS - as this is only deleting each file recursively from your home directory - where you already have user permissions for those files, as you are the owner of the files in your home directory (broadly speaking).
It's running as a loop, so anything that it encounters that it can't delete - it moves onto the next one it can. It's very destructive, and I certainly wouldn't want to run that - but I can run this destructively on a sacrificial user account on Linux - and Also on MacOS 14 at least - where it actually freaks out and prevents that user account from being logged into anymore(!)
The point though was (for purposes of my justification for the idea), that there needs to be a safety net in place.
One that doesn't require a restart or separate instance of the IDE to be launched. It seems a bit half-baked that you can't come back
out of secure mode in the IDE once you'd set it to true. At the very least, you'd think it would store a reference of the container object that set the securemode to true, and only the same container script of the same stack, could take it back out of securemode. That seems like it'd be a logical approach to me, but what do I know
