I was searching hard through all the forums, but could not find an answer on my question. I'm writing a desktop application and I want to auto-detect proxy settings on recent Ubuntu. There are many tutotials about how to set up the settings via GUI:
- Where are the system-wide proxy server settings?
- Where are the proxy settings saved?
- How do I set systemwide proxy servers in Xubuntu, Lubuntu or Ubuntu Studio?
- Where to set proxy ignore list?
but no suggestions of how to find already defined settings.
This topic describes, how to set the proxy settings via command line tool gsettings:
but still no information about where it is stored. As far as I understand, gsettings stores all the settings in ~/.config/dconf/user. If true, and if it also stores proxy settings there, then is there any way for an external custom application to retrieve these settings from this file?
I don't think this is duplicate, because it does not answer my questions:
Where is the actual proxy settings file located?
How to get the settings automatically? Please note that gsettings is a user tool with CLI, and I need to obtain the proxy settings automatically from the system without any user interface.