[systemd-devel] systemd user unit - how to prepare environment?

Peter Hoeg peter at hoeg.com
Wed Sep 12 02:15:20 UTC 2018


Hi,

>> > So my question is, where to init variables for user units?
>> > I woluld like to have possiblity to set them as not only as fixed
>> > strings
>> >
>> > (i.e. I would to have PATH=$PATH:xxx)
>
>You can add them to ~/.config/systemd/user.conf in the Environment=
>field in the [Manager] section, see systemd-system.conf(5).x

How does this compare to man 5 environment.d ?

--
Regards,
Peter


More information about the systemd-devel mailing list