I'm writting an ElectronJS app using pcap. When I start the app by npm start, I've got an error saying that operation is not permitted. It was indeed expected as pcap requires root privileges. Problem is I cannot either launch the app with sudo npm start --no-sandbox.
What's more, if I build the project using electron-builder, I can start the AppImage with sudo ./y-1.0.0.AppImage --no-sandbox , but I've got display errors and the browser window did not appears, enven if pcap is working. I also tried sudo -E ./y-1.0.0.AppImage --no-sandbox with no success.
Any idea? Thanks for your help!