]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/dbus-execute.c
core: allow setting WorkingDirectory= to the special value ~
authorLennart Poettering <lennart@poettering.net>
Wed, 23 Sep 2015 17:46:23 +0000 (19:46 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 29 Sep 2015 19:55:51 +0000 (21:55 +0200)
commit5f5d8eab1f2f5f5e088bc301533b3e4636de96c7
treed5341f3e35dc5cef2105368633c145ee75553545
parent0521e286fc34d1ab58edc1a3fab7b8285c4b36e5
core: allow setting WorkingDirectory= to the special value ~

If set to ~ the working directory is set to the home directory of the
user configured in User=.

This change also exposes the existing switch for the working directory
that allowed making missing working directories non-fatal.

This also changes "machinectl shell" to make use of this to ensure that
the invoked shell is by default in the user's home directory.

Fixes #1268.
man/systemd.exec.xml
src/core/dbus-execute.c
src/core/execute.c
src/core/execute.h
src/core/load-fragment-gperf.gperf.m4
src/core/load-fragment.c
src/core/load-fragment.h
src/machine/machine-dbus.c