guix: qt-utils: Wrapped executables honor user's envvars.
authorHartmut Goebel <h.goebel@crazy-compilers.com>
Wed, 19 Aug 2020 08:44:27 +0000 (10:44 +0200)
committerHartmut Goebel <h.goebel@crazy-compilers.com>
Fri, 29 Jan 2021 22:04:02 +0000 (23:04 +0100)
commit4ecc2a24936a1fbfe3ff5654090d41e91c2fe8f2
treed45435323dff037dc57a3b3129ff9b784346b6ee
parent9085260fccd17955be6922c215f89be3e424dda3
guix: qt-utils: Wrapped executables honor user's envvars.

Prior to this change, wrappers did set the specified environment variables to
a fixed value, overwriting any user settings. This inhibited propagating
e.g. XDG_DATA_DIRS from a profile to the application.

Now user environment variables are prefixed (if the variable defines some
"binary" search path, e.g. QT_PLUGIN_PATH) or suffixed (if the variable
defines some config or data search path, e.g. XDG_DATA_DIRS). The code could
also allow to overwrite, anyhow currently no variable is defined like this.

* guix/build/qt-utils.scm (variables-for-wrapping): For each env-var to
  be wrapped, specify whether it should prefix, suffix or overwrite the
  user's variable.
guix/build/qt-utils.scm