2

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:

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?

afrish
  • 560

1 Answers1

0

The idea of having a command like gsettings is that it doesn't matter where or how the settings are stored. Even if the actual location should change, gsettings will tell you the values. So have your program do something like

gsettings get org.gnome.system.proxy mode

and you're fine.

Jos
  • 30,529
  • 8
  • 89
  • 96