I have an rpm package which runs with sudo rights, that application wants to fetch the proxy configuration of the machine (should fetch the proxy configuration of users level as well), As we know we can set the proxy configuration multiple ways. Currently, I am talking about when you configure the proxy through System Settings > Network Settings > Proxy
I use gsettings list-recursively org.gnome.system.proxy cmd, and it is returning the values, but those are specific to the current user (Currently I am getting the current root user proxy configuration because I installed the application with sudo). I want to fetch the proxy configuration of each user including the root user from the root user access.
It would be great if I get any common query that executes against system settings ->network ->network proxy and fetch the proxy configuration for the sudo user and the other users. If GSettings doesn't support please suggest any alternative ways.