From afabcfd5938c6f4e55974e527d7d773bb67eada6 Mon Sep 17 00:00:00 2001 From: hewenfei Date: Fri, 31 Mar 2023 09:48:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0dbus-service=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 2 ++ data/org.ukui.menu.service | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 data/org.ukui.menu.service diff --git a/CMakeLists.txt b/CMakeLists.txt index b4a4fb6..8e6bfa9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,6 +117,7 @@ set(QRC_FILES qml/qml.qrc res/res.qrc) set(DESKTOP_FILE data/ukui-menu.desktop) set(GSETTING_FILE data/org.ukui.menu.settings.gschema.xml) set(GLOBAL_CONFIG_FILE data/ukui-menu-global-config.conf) +set(DBUS_SERVICE_FILE data/org.ukui.menu.service) # data files #set(DATA_FILES data/xxx) # extension @@ -160,4 +161,5 @@ install(FILES ${QM_FILES} DESTINATION "${UKUI_MENU_TRANSLATION_DIR}") install(FILES ${DESKTOP_FILE} DESTINATION "/etc/xdg/autostart") install(FILES ${GSETTING_FILE} DESTINATION "/usr/share/glib-2.0/schemas") install(FILES ${GLOBAL_CONFIG_FILE} DESTINATION "${UKUI_MENU_DATA_DIR}") +install(FILES ${DBUS_SERVICE_FILE} DESTINATION "/usr/share/dbus-1/services/") #install(FILES ${EXTENSION_IFACE_QML_FILES} DESTINATION "${UKUI_MENU_EXTENSION_IFACE_QML_DIR}") diff --git a/data/org.ukui.menu.service b/data/org.ukui.menu.service new file mode 100644 index 0000000..3a0ea89 --- /dev/null +++ b/data/org.ukui.menu.service @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=org.ukui.menu +Exec=/usr/bin/ukui-menu