Update: Headline for this post is changed from ”Turn off Catalina’s Privacy Protection Policies?" to pointing out the problem itself. I’m not sure turning off Privacy protection is the solution, so I don’t want to rule out other suggestions.
In any case, SystemPolicyNetworkVolumes has nothing to do with it. So my just question below are no longer relevant – but the problem description is.
Is there any way to turn off Catalina-s new Privacy Protection Policies regarding file locations, specifically SystemPolicyNetworkVolumes?
The reason for this need is that running scripts for InDesignServer have become unacceptably slow for us after upgrading when the process evolve interactions with files on file servers (SMB).
As an example, one such script took just above 1 minute to run a capably small task under Mojave (varying between 1:01 and 1:10). After upgrading to Catalina they take at best 3m 30s, but sometimes more than 5 seconds. So there is also more variation now, but even the best scores means more than tripling of processing time compared to before e – which is totally unacceptable in the production context.
After a lot of analyzing and testing, we have concluded this must be connected to the new system policies in Catalina. The suffering scripts works a lot with files on file servers, e.g. images. My theory is that for every Indesign action that involves files in a "restricted area”, like a file server, macOS have to check if the process have access to those files. One such check might take a a few milliseconds – but Indesign seems to continuously retieve data from all linked objects, not just once. So those milliseconds might sum up to minutes.
I’m quite convinced performance would be normal again if we could totally turn off SystemPolicyNetworkVolumes (and maybe its fiends too) – but is that even possible?
I believe turning off SIP alone will not do the trick.