[QGIS-Developer] Inconsistencies in QGIS ini path

Tim Sutton tim at kartoza.com
Tue Aug 18 05:46:25 PDT 2020


Thank you for testing on mac Harissou!

Regards

Tim

On Mon, Aug 17, 2020 at 4:54 PM DelazJ <delazj at gmail.com> wrote:

> Hi,
>
>
> Le lun. 17 août 2020 à 16:56, Tim Sutton <tim at kartoza.com> a écrit :
>
>> Hi Richard
>>
>> Thanks for your reply - see below for inline responses:
>>
>> On Mon, Aug 17, 2020 at 12:32 PM Richard Duivenvoorde <
>> rdmailings at duif.net> wrote:
>>
>>> On 8/17/20 9:23 AM, Tim Sutton wrote:
>>>
>> [...]
>
> QStandardPaths.standardLocations(QStandardPaths.AppDataLocation)
>>> in the pythonconsole shows:
>>> [
>>>  '/home/richard/.local/share/QGIS/QGIS3',
>>>  '/usr/share/gnome/QGIS/QGIS3',
>>>  '/home/richard/.local/share/flatpak/exports/share/QGIS/QGIS3',
>>>  '/var/lib/flatpak/exports/share/QGIS/QGIS3',
>>>  '/usr/local/share/QGIS/QGIS3',
>>>  '/usr/share/QGIS/QGIS3'
>>> ]
>>>
>>> Can you test this on a mac?
>>>
>>
>> Heheh once you leave mac, you can never go back :-) Hopefully someone
>> looking in from macOSland on the list here if they can test.
>>
>> On a mac, I get (using 3.10 from the all-in-one installer)
> >> QStandardPaths.standardLocations(QStandardPaths.AppDataLocation)
> ['/Users/harrissou/Library/Application Support/QGIS/QGIS3',
> '/Library/Application Support/QGIS/QGIS3',
> '/Applications/QGIS3.10.app/Contents/Resources']
>
> On Windows, using an osgeo4w advanced install, with master:
> ['C:/Users/harrissou/AppData/Roaming/QGIS/QGIS3',
> 'C:/ProgramData/QGIS/QGIS3',
> 'C:/OSGEO4W64/bin',
> 'C:/OSGEO4W64/bin/data',
> 'C:/OSGEO4W64/bin/data/QGIS/QGIS3']
>
> HTH,
> Harrissou
>
>>
>>
>>>
>>> IF it is different, I think it is better to adhere to Qt-standards then
>>> to build those path's ourselves?
>>>
>>
>> Well the issue I am trying to highlight is that the config folder as
>> currently implemented is not portable. I thought it was part of the design
>> intent of switching to ini based configs way back that there was a
>> homogenous system for managing configurations. Currently having <PROFILE
>> NAME>/qgis.org/QGIS3.ini on a mac and <PROFILE NAME>/QGIS/QGIS3.ini on
>> linux (curious to know what Windows does) breaks the principle of least
>> surprise and means that your settings folder isn't portable between
>> machines when it easily could be,
>>
>> Regards
>>
>> Tim
>>
>>
>>
>>
>>>
>>> Regards,
>>>
>>> Richard Duivenvoorde
>>> _______________________________________________
>>> QGIS-Developer mailing list
>>> QGIS-Developer at lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>>
>>
>> --
>>
>> ------------------------------------------------------------------------------------------
>>
>> Tim Sutton
>> Visit http://kartoza.com to find out about open source:
>>  * Desktop GIS programming services
>>  * Geospatial web development
>> * GIS Training
>> * Consulting Services
>> Skype: timlinux Irc: timlinux on #qgis at freenode.net
>> Tim is a member of the QGIS Project Steering Committee
>>
>> -------------------------------------------------------------------------------------------
>> Kartoza is a merger between Linfiniti and Afrispatial
>> _______________________________________________
>> QGIS-Developer mailing list
>> QGIS-Developer at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>

-- 
------------------------------------------------------------------------------------------

Tim Sutton
Visit http://kartoza.com to find out about open source:
 * Desktop GIS programming services
 * Geospatial web development
* GIS Training
* Consulting Services
Skype: timlinux Irc: timlinux on #qgis at freenode.net
Tim is a member of the QGIS Project Steering Committee
-------------------------------------------------------------------------------------------
Kartoza is a merger between Linfiniti and Afrispatial
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200818/3f65db3b/attachment-0001.html>


More information about the QGIS-Developer mailing list