feat: add app-update-notifier

Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
ComixHe
2023-09-05 15:10:43 +08:00
committed by Comix
parent ebe218b70e
commit 94db47a015
14 changed files with 180 additions and 2 deletions

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
SPDX-License-Identifier: LGPL-3.0-or-later
-->
<!-- -*- XML -*- -->
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- Only root can own the service -->
<policy user="root">
<allow own="org.desktopspec.ApplicationUpdateNotifier1"/>
</policy>
<policy context="default">
<allow send_destination="org.desktopspec.ApplicationUpdateNotifier1"/>
<allow receive_sender="org.desktopspec.ApplicationUpdateNotifier1"/>
</policy>
<!-- Only allow @LINGLONG_USERNAME@ to invoke methods on the interfaces -->
<policy user="root">
<allow send_destination="org.desktopspec.ApplicationUpdateNotifier1"/>
</policy>
</busconfig>

View File

@ -0,0 +1,9 @@
# SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
#
# SPDX-License-Identifier: LGPL-3.0-or-later
[D-BUS Service]
Name=org.desktopspec.ApplicationUpdateNotifier1
Exec=@CMAKE_INSTALL_FULL_BINDIR@/app-update-notifier
User=root
SystemdService=org.desktopspec.ApplicationUpdateNotifier1