Xpra: Ticket #2688: make it easier to source environment

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.



Tue, 31 Mar 2020 09:17:09 GMT - Antoine Martin: status changed; resolution set

Implemented in r25872.

Examples:

$ cat > server.env <<EOF
export FOO=bar
export BAR=2
EOF
$ cat > start.env <<EOF
export BAR=1
EOF
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

Sat, 23 Jan 2021 05:58:07 GMT - migration script:

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