[systemd-devel] systemd user unit - how to prepare environment?
Lennart Poettering
lennart at poettering.net
Wed Sep 12 09:17:03 UTC 2018
On Mi, 12.09.18 06:18, Kamil Jońca (kjonca at o2.pl) wrote:
> Lennart Poettering <lennart at poettering.net> writes:
>
> [...]
> >> >
> >> > (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
>
> Two questions:
> 1. Can I there use construct like PATH=$PATH:xxx?
No, it's a declarative configuration file, not a script language or
templating language. It only knows plain assignments.
> 2. whether there is a such file on user level?
See above, it's located in the user's $HOME directory ("~"), i.e. is per-user.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list