How to save renders to user folders on mac os?

So I want to make an app that utilizes movie render queue subsystem. And want it to save generated frames to a specified folder on user desktop.

Say for example the path would be “~/Desktop/output”

This works well if I run it in editor, however once packaged it doesn’t want to save there.

I suspect it just doesn’t have access to desktop. And it doesn’t even try as for example any other app that requests access to desktop will ask for permission, mine does nothing.

I don’t know how to properly do this since path ~/Desktop/… nor an absolute path works…

Anyone knows how to do these things in mac os? How can i have access to user folders to output frames?