<div dir="ltr">On Mon, May 21, 2018 at 5:03 PM, Ant Scott <span dir="ltr"><<a href="mailto:antony.scott@gmail.com" target="_blank">antony.scott@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I've been spending some time trying to start QGIS using an .ini file located<br>
somewhere other than in the Windows default user location. I tried both<br>
--globalsettingsfile and --customizationfile, and although I can get some<br>
settings (eg formatLayerName=false) to read from the former, it seems that<br>
most settings (e.g. locale) are read from and written to the QGIS3.ini file<br>
in profiles. Interestingly if I create a new profile, it uses settings from<br>
the qgis_global_settings.ini  file I specified in the command line, but the<br>
new profile settings are created in the profile folder.<br>
<br>
However it looks as though I can use the --profiles-path param to store<br>
details of all profiles whereever I want, and that this is probably the way<br>
to go in running QGIS in a way which is independent of writing to the user's<br>
default Windows folder, and where the startup settings can likewise be held<br>
in a location independent of the user.<br>
<br>
Has anyone used this, and have I got this right? I'm using 3.0.3 by the way. <br>
<br>
many thanks<br>
Ant<br>
<br>
<br></blockquote><div><br></div><div>Hi,</div><div><br></div>please notice that the global settings file is read-only and its only purpose it to provide (or override) default values for the settings.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Once a particular setting has been saved by the user (or by the application or by a plugin) then it has a value and the default value is never used again.</div><div class="gmail_quote"><br></div><div class="gmail_quote">The idea behind global settings is that we didn't want to store default values inline in C++ code (that would imply to rebuild the whole application just to fix a default value) and we wanted a way to override default values for the users by providing a (possibly customised) default settings file.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Hope this helps.<br></div><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div></div>