On 3/19/22 14:56, Philippe Mathieu-Daudé wrote:
1. Move setgid and setuid calls after [+NSApplication sharedApplication] to let NSApplication initialize as the original user.
Another possibility is to move the code up to "[QemuApplication sharedApplication]" from main() to cocoa_display_init().
Paolo