summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Bachmann <manuel.bachmann@open.eurogiciel.org>2014-08-05 11:32:52 +0200
committerManuel Bachmann <manuel.bachmann@open.eurogiciel.org>2014-08-05 11:32:52 +0200
commit6f96cd6bee80c17872bb3d6d2c9bb4081f1101af (patch)
treeb222497d50a964c33c0a2bdb7cf6dd4217c7e149
parent8ed091f70542ed084aa50d1cfcf106aa56dc4e6c (diff)
downloadweston-common-6f96cd6bee80c17872bb3d6d2c9bb4081f1101af.tar.gz
weston-common-6f96cd6bee80c17872bb3d6d2c9bb4081f1101af.tar.bz2
weston-common-6f96cd6bee80c17872bb3d6d2c9bb4081f1101af.zip
Start Weston in its dedicated user $HOME directorysubmit/tizen/20140811.130226accepted/tizen/common/20140811.164545
If systemd runs Weston as a system-wide service (which is the case here), its working directory will be "/". It is a problem for privilegied clients such as the screen recorder and screenshooter, which will try to dump their output files there, and fail. Make them create these in "/run/%user" instead. Bug-Tizen: TC-1359 Change-Id: Id6322f38f8dcbec4efaa68906a2fef27815c93d1 Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
-rw-r--r--display-manager-run.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/display-manager-run.service b/display-manager-run.service
index 2242f04..313c8ed 100644
--- a/display-manager-run.service
+++ b/display-manager-run.service
@@ -3,6 +3,7 @@ Description=Weston display daemon
[Service]
User=display
+WorkingDirectory=/run/%u
ExecStart=/usr/bin/weston -i0 --log=%h/weston.log
StandardInput=tty
TTYPath=/dev/tty7