refact: remove unnecessary open operation

fix AM can't access some dirs due to
systemd 254's sandboxing option: PrivateUser
is true by default.

Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
ComixHe
2023-08-31 17:59:09 +08:00
committed by Comix
parent df9bb10cee
commit 4c9d4491df
4 changed files with 9 additions and 20 deletions

View File

@ -11,3 +11,5 @@ BusName=org.deepin.dde.ApplicationManager1
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/dde-application-manager-reborn
Restart=always
Environment=QT_LOGGING_RULES="*.debug=false"
PrivateUsers=false
# turn off PrivateUser to prevent AM can't access some directory. eg. "/persistent/linglong"