Closed PBK-B closed 7 months ago
This is because MacOS AppKit
based applications (NSApplication
or NSWindow
) are forbidden to run as root.
See
I don't really know what you are trying to achieve but you can bypass this limitation running a setuid launcher that call your program.
CAREFUL though about any security issue!
@renard Thank you. I think I probably understand.
Use the example code to reproduce. The reproduction steps are as follows
The error message is as follows
I think my application needs this permissions, if any suggestions or ideas can help me