Please consider supporting some variable expansion in 'env' parameters:
Common variables:
$HOME $USER $UID $GID $GROUPS $LANG and $LC_* variables
XDG vars:
$XDG_CACHE_HOME $XDG_CONFIG_DIRS $XDG_CONFIG_HOME $XDG_CURRENT_DESKTOP $XDG_DATA_DIRS $XDG_DATA_HOME $XDG_MENU_PREFIX $XDG_RUNTIME_DIR $XDG_SEAT $XDG_SEAT_PATH $XDG_SESSION_DESKTOP $XDG_SESSION_ID $XDG_SESSION_PATH $XDG_SESSION_TYPE $XDG_VTNR
Done in r12795 using os.path.expandvars. We expand any variable found in the environment using the syntax $VAR or ${VAR}.
Limitations:
--env=A=X --env=B=$A
will not give you B=X
Please close if that works for you.
Knowing that limitation, strings can be repeated.
It works. Thank you!
Milestone renamed
Variables stopped working after upgrade to stable branch 1.0-r14502-1 (deb).
for example, with this line in config:
env = XDG_CONFIG_HOME=${HOME}/.config
variable is set as literal ${HOME}/.config
Fixed in r14605, this will be included in 1.0.1
FYI: with 1.0, you often want to use "start-env=KEY=VALUE" rather than "env=" (and the former works as expected in 1.0):
Not heard back, closing.
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1224