This code works beautifully on Mojave, but won't run in Catalina due to the dual hard drive partition.
Currently, the AppBlocker.py is being deployed and resides in the main HDD. But in Catalina, that main HDD is a read only. It read/write ability is inside HDD ==> System ==> Volumes ==> HDD is the new read/write location in Catalina.
We do have a post install script that forces the app to run in Airwatch, our mdm product.

https://www.macworld.com/article/3451363/why-you-might-see-a-new-data-disk-in-catalina.html
This code works beautifully on Mojave, but won't run in Catalina due to the dual hard drive partition.
Currently, the AppBlocker.py is being deployed and resides in the main HDD. But in Catalina, that main HDD is a read only. It read/write ability is inside HDD ==> System ==> Volumes ==> HDD is the new read/write location in Catalina.
We do have a post install script that forces the app to run in Airwatch, our mdm product.

https://www.macworld.com/article/3451363/why-you-might-see-a-new-data-disk-in-catalina.html