Xpra: Ticket #1224: expand set of variables in 'env'

Please consider supporting some variable expansion in 'env' parameters:

Common variables:

$LANG and $LC_* variables

XDG vars:


Sat, 11 Jun 2016 16:00:18 GMT - Antoine Martin: owner, description changed

Done in r12795 using os.path.expandvars. We expand any variable found in the environment using the syntax $VAR or ${VAR}.


Please close if that works for you.

Sat, 11 Jun 2016 19:36:02 GMT - psycho_zs: status changed; resolution set

Knowing that limitation, strings can be repeated.

It works. Thank you!

Tue, 12 Jul 2016 16:52:22 GMT - Antoine Martin: milestone changed

Milestone renamed

Fri, 23 Dec 2016 19:01:49 GMT - psycho_zs: status, version changed; resolution deleted

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

Mon, 26 Dec 2016 03:59:30 GMT - Antoine Martin: status changed

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):

Thu, 26 Jan 2017 11:20:24 GMT - Antoine Martin: status changed; resolution set

Not heard back, closing.

Sat, 23 Jan 2021 05:18:21 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1224