#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 )
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
Change History (7)
comment:1 Changed 6 years ago by
Description: | modified (diff) |
---|---|
Owner: | changed from Antoine Martin to psycho_zs |
comment:2 Changed 6 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Knowing that limitation, strings can be repeated.
It works.
Thank you!
comment:4 Changed 6 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Version: | trunk → 1.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
Status: | reopened → new |
---|
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
comment:6 Changed 5 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Not heard back, closing.
comment:7 Changed 17 months ago by
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1224
Note: See
TracTickets for help on using
tickets.
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 youB=X
Please close if that works for you.