Its a problem with AppArmor, and for now, you’ll need to create a profile to run Cursor.
We are working with the ToDesktop team to try and get a better solution than this, but this is an issue affect a lot of apps, and there’s not a good solution currently!