xpra icon
Bug tracker and wiki

Opened 7 months ago

Closed 7 months ago

#2688 closed enhancement (fixed)

make it easier to source environment

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: major Milestone: 4.0
Component: server Version: 3.0.x
Keywords: Cc:


As per mailing list: profile.d not load, and other queries in the past, users want to be able to load /etc/profile or other scripts and inject the output into the server environment.

We should make it easier to do that.

Change History (1)

comment:1 Changed 7 months ago by Antoine Martin

Resolution: fixed
Status: newclosed

Implemented in r25872.


$ cat > server.env <<EOF
export FOO=bar
export BAR=2
$ cat > start.env <<EOF
export BAR=1
xpra start --start=xterm --source=./server.env --source-start=start.env

Then the server environment will have FOO=bar and BAR=2 whereas all commands started by the server (ie: xterm) will have FOO=bar and BAR=1.

More commonly, this is likely to be used as:

xpra start --start=xterm --source-start=/etc/profile
Note: See TracTickets for help on using tickets.