Cannot run built application as root
- Version: 11.7.0
- Target: Darwin - MacOS Safari
My application runs fine when running as a normal user, but when I try to start it using sudo it errors with the following.
$ open my-electron.app
Opens my app successfully
$ sudo open my-electron.app
LSOpenURLsWithRole() failed with error -10810 for the file /.../my-electron.app.
I need to run as root because I need access to network interfaces. (pcap)