Re: systemd user unit - how to prepare environment?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mi, 12.09.18 06:18, Kamil Jońca (kjonca@xxxxx) wrote:

> Lennart Poettering <lennart@xxxxxxxxxxxxxx> 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
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux