QField icon indicating copy to clipboard operation
QField copied to clipboard

A round of windows fixes

Open nirvn opened this issue 2 years ago • 3 comments

This fixes install path for proj data on windows (and I assume OSX). No regression on the Android front.

nirvn avatar Aug 14 '22 03:08 nirvn

🎉 Ta-daaa, freshly created APKs are available for c40f1fcd815cb34ee6b7fc1bc03b1ec9913533da: arm64-android

Other architectures

qfield-fairy avatar Aug 14 '22 03:08 qfield-fairy

With this commit, QField on Windows can find the proj.db, and reprojection works flawlessly: image

nirvn avatar Aug 14 '22 05:08 nirvn

@m-kuhn , when testing QField on windows, I noticed that upon first launch after installing QField, the systemSharedDataLocation() returned C:\ (only once). That's bad (in part because it's needed to properly initiate the qgis profile database creation, etc.)

Googling a bit about QCoreApplication::applicationDirPath(), it seems that's not as reliable as QCoreApplication::applicationFilePath(), hence the commit here. That should give us reliable paths.

nirvn avatar Aug 14 '22 07:08 nirvn

@m-kuhn , first launch issue fixed, brilliant.

nirvn avatar Aug 15 '22 02:08 nirvn