When the application starts, there's a check that deletes the app from the list of apps.
Expected Behavior
I would expect that even if the app has the check box ticked off from the list of allowed apps, that is interpreted intentionally and simply not delete the app from the settings.
Possible Solution
remove the tccutil call
improve the handling of that permission and display a message to the user to enable or add the app.
Description
Screen sharing permission request optimization
Current behavior
When the application starts, there's a check that deletes the app from the list of apps.
Expected Behavior
I would expect that even if the app has the check box ticked off from the list of allowed apps, that is interpreted intentionally and simply not delete the app from the settings.
Possible Solution
Steps to reproduce
Environment details
macOS 12.4