Open nm-connection-editor through statusnotifer cannot ask for root priviledge
I deployed Xubuntu-20.04 with kernel 4.4 on my RK3399 based board and used Network Manager to manage the network. But I found that the frontend tool nm-connection-tool does not work when I want to configure network information. The configuration options I changed can't be saved after changing.
I suspected the problem is a lack of root privileges. So I logged in as the root user and confirmed my guess. I wonder why it doesn't request for root privilege, but I can use pkexec to solve the problem. Now the problem is how to add pkexec for status notifier, I found the internal plugins seems to use the .so file to control, is there any API to add a pkexec request when clicking the "Edit Connections" menu of the status notifier?