feat: add app-update-notifier
Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
@ -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>
|
@ -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
|
Reference in New Issue
Block a user