xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.

Opened 6 years ago

Closed 5 years ago

Last modified 17 months ago

#1224 closed defect (worksforme)

expand set of variables in 'env'

Reported by: psycho_zs Owned by: psycho_zs
Priority: major Milestone: 1.0
Component: server Version: 1.0.x
Keywords: variables environment Cc:

Description (last modified by Antoine Martin)

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

Common variables:

$LANG and $LC_* variables

XDG vars:


Change History (7)

comment:1 Changed 6 years ago by Antoine Martin

Description: modified (diff)
Owner: changed from Antoine Martin to psycho_zs

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


  • I can't think of any problems it would cause but this function is designed for expanding paths
  • We do not expand variables defined using the env switch, so --env=A=X --env=B=$A will not give you B=X

Please close if that works for you.

comment:2 Changed 6 years ago by psycho_zs

Resolution: fixed
Status: newclosed

Knowing that limitation, strings can be repeated.

It works.
Thank you!

comment:3 Changed 6 years ago by Antoine Martin

Milestone: 0.181.0

Milestone renamed

comment:4 Changed 6 years ago by psycho_zs

Resolution: fixed
Status: closedreopened
Version: trunk1.0.x

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

comment:5 Changed 6 years ago by Antoine Martin

Status: reopenednew

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

  • "start-env" affects all commands started by xpra
  • "env" affects everything including xpra itself
Last edited 6 years ago by Antoine Martin (previous) (diff)

comment:6 Changed 5 years ago by Antoine Martin

Resolution: worksforme
Status: newclosed

Not heard back, closing.

comment:7 Changed 17 months ago by migration script

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

Note: See TracTickets for help on using tickets.