[QGIS-Developer] Documentation of QGIS3.ini structure/schema?

Richard Duivenvoorde rdmailings at duif.net
Thu Jun 29 02:23:46 PDT 2023


Hi Hannes,

Not sure if it is documented, and not sure IF they should be at different places.

But one explanation, IF this is an old profile and you are running master/own compiled QGIS's, could be that a new Settings regime has been introduced recently, which changed the 'keys' of (almost all) settings. Denis can tell you the exact details.

It could be that you have multiple configurations, because of 'intermediate' and old settings... I do not think the new code cleans up old settings (but it SAVES them).

I've at a certain moment replaced/refreshed some of my profiles because of settings troubles...

Regards,

Richard Duivenvoorde

On 6/29/23 10:35, Johannes Kröger (WhereGroup) via QGIS-Developer wrote:
> Hey guys,
> 
> I am trying to polish the Profile Manager plugin https://plugins.qgis.org/plugins/profile-manager/ and am having sliiight troubles with the QGIS3.ini structure. Looking at a naturally grown profile I found 5 different places in which configuration is stored for one single WFS connection, mostly redundantly and I wonder if this is documented somewhere?
> 
> Here is an example:
> 
> [connections]
> ows\items\WFS\connections\items\foo\authcfg =
> ows\items\wfs\connections\items\foo\dpi-mode = All
> ows\items\wfs\connections\items\foo\http-header = @Variant(\0\0\0\b\0\0\0\0)
> ows\items\wfs\connections\items\foo\ignore-axis-orientation = false
> ...
> ows\items\wfs\connections\items\foo\version = auto
> 
> [qgis]
> WFS\foo\authcfg=
> ...
> connections-wfs\foo\dpiMode = All
> connections-wfs\foo\ignoreAxisOrientation = false
> ...
> connections\WFS\foo\authcfg =
> connections\WFS\foo\password =
> connections\WFS\foo\username =
> 
> I assume that this is from different versions of QGIS? When I created a new profile in 3.32 I only got lines in the [connections] section and they were all lowercase. With 3.16 I got entries under [qgis].
> 
> - Is the QGIS3.ini structure documented somewhere?
> - Are changes between versions documented?
> - Is there a way to find out which QGIS version a QGIS3.ini file was written with?
> - Is the structure stable within point releases?
> - How far does backwards compatibility go and which entries take precedence when they are referencing the same thing?
> 
> Cheers, Hannes
> 



More information about the QGIS-Developer mailing list