]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: add support for Environment in io.systemd.Unit.StartTransient
authorMichael Vogt <michael@amutable.com>
Wed, 29 Apr 2026 13:45:10 +0000 (15:45 +0200)
committerMichael Vogt <michael@amutable.com>
Wed, 13 May 2026 17:28:35 +0000 (19:28 +0200)
commit27fa92aa3cc3e5b8b7511c52c32b49d136a2d092
treef46382553abbb03e2873606626083cb463451881
parented6b2b9c30a24183e4a2ae71cc58bc461f0d6ca4
core: add support for Environment in io.systemd.Unit.StartTransient

This commit adds support to set `Environment` in the
`io.systemd.Unit.StartTransient` varlink call.

The behavior is similar to D-Bus, i.e. a `null` or `[]` clears the
environment. This is not needed for StartTransient() as there the env
always starts empty but it seems a good property to have if this is
reused.
src/core/varlink-unit.c
src/shared/varlink-io.systemd.Unit.c
test/units/TEST-26-SYSTEMCTL.sh