[QGIS-Developer] Settings migration from QGIS 2 to 3

Nathan Woodrow madmanwoo at gmail.com
Fri Oct 27 03:49:18 PDT 2017


Hi all,

Just a heads up that I just merged something to migrate settings and styles
from 2 .qgis2 and config locations into QGIS 3 settings.  It will currently
only take a selection of things that I know we can port over but I would
like some help to grow that list before release.

Notes on how it works:

Edit the following file:
https://github.com/qgis/QGIS/blob/90857b2b18b69ac195d152db269f18a23c0ab95f/resources/2to3migration.txt

Syntax is:

oldkey;newkey

* means match key and /* means copy everything under this group:

Qgis/connections-xyz/*;qgis/connections-xyz/*

Will copy and Qgis/connections-xyz/ to gis/connections-xyz/ and everything
under it.

browser/favourites;*

Will copy the full key browser/favourites to the same key in QGIS 3.

If you change the file you must change # version=1 at the top to be a
higher number
or else the migration won't run again, however, we can leave it at 1 for
now until release
and just bump it at the end just before release once all the keys are
added.

If you want to add stuff to and have troubles let me know.   I would like
to see if we can get all the important stuff to come over before release,
connection strings, etc.  Anything that is a pain to setup for users.

If you don't want to lose any settings you are currently using in QGIS 3
dev I would make a new profile (Settings -> User Profile) and run with that
one while default takes everything from the migration steps.  Pro tip: Just
copy the default copy in the profiles\ folder to have a copy.

Regards,
Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20171027/de5e6909/attachment.html>


More information about the QGIS-Developer mailing list