[systemd-devel] user environment variables

Daniele Nicolodi daniele at grinta.net
Fri Dec 5 07:20:57 PST 2014


On 05/12/14 16:13, arnaud gaboury wrote:
> Now:
> ----------------------------------
> $ echo 'lolo=4 lala=5' | tee test
> lolo=4 lala=5
> $ systemctl --user set-environment 'cat test'
> Failed to set environment: Invalid environment assignments
> -----------------------------------
> 
> No idea what I do wrong.

This is invalid shell syntax. This should work:

$ systemctl --user set-environment `cat test`

or, if you are using bash, I find this more readable:

$ systemctl --user set-environment $(cat test)


Cheers,
Daniele



More information about the systemd-devel mailing list