@compositor the better approach imho is to implement it in Wayland in a way that allows a more direct path to 3rd party apps if given the permission to do so by the user. Otherwise 3rd party app developers will have to write separate support for each & every DE a user might use.
Macs have a privacy & security are for apps to be granted permissions for things like automation & file access. I don’t understand why we can’t do something similar.