[QGIS-Developer] User defined env vars on QGIS Master Windows

Jürgen E. Fischer jef at norbit.de
Wed Aug 9 06:04:00 PDT 2017


Hi Andreas,

On Wed, 09. Aug 2017 at 13:24:05 +0200, Neumann, Andreas wrote:
> While this works fine on QGIS 2.18, I have issues in master - only if I
> define PGSYSCONFDIR centrally in the Windows operating system, this
> variable is honored, not if I define them in QGIS under Settings -->
> Options --> System --> Environment. In this latter case, the env var is
> ignored. 

You could a batch file in etc\ini instead that sets PGSYSCONFDIR.  That will be
run before QGIS starts (I do that with NLS_LANG for Oracle sometimes) and
doesn't pollute the global enviroment.  Note that the change might not be
picked up if you run a pinned QGIS instead of starting it via the shortcut (you
need to run that at least once).
 
> I am pretty sure, this issue is rather recent, because it already worked with
> older QGIS master builds. 

My guess is that PGSYSCONFDIR is set too late from the QGIS settings - ie.
after the first connection is attempted.


Jürgen

-- 
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden             http://www.norbit.de
QGIS release manager (PSC)  Germany                    IRC: jef on FreeNode
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170809/619bd076/attachment-0001.sig>


More information about the QGIS-Developer mailing list