systembus-notify: fix dbus connection failure

Fixes #260694
This commit is contained in:
oxalica 2024-01-10 22:53:57 +08:00 committed by Peter Hoeg
parent cbd5dc6763
commit a0692d3b21
1 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,9 @@ let
Type = "exec";
ExecStart = "@out@/bin/systembus-notify";
PrivateTmp = true;
ProtectHome = true;
# NB. We cannot `ProtectHome`, or it would block session dbus access.
InaccessiblePaths = "/home";
ReadOnlyPaths = "/run/user";
ProtectSystem = "strict";
Restart = "on-failure";
Slice = "background.slice";