From 5cf748702710153401edf54ab8083f575bf3a103 Mon Sep 17 00:00:00 2001 From: iaom Date: Tue, 1 Aug 2023 10:18:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=90=AF?= =?UTF-8?q?=E5=8A=A8desktop=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notification-server/CMakeLists.txt | 2 ++ .../data/ukui-notification-server.desktop | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 notification-server/data/ukui-notification-server.desktop diff --git a/notification-server/CMakeLists.txt b/notification-server/CMakeLists.txt index 51aa61e..73f83f8 100644 --- a/notification-server/CMakeLists.txt +++ b/notification-server/CMakeLists.txt @@ -42,5 +42,7 @@ else() qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR}/translations ${TS_FILES}) endif() set(DBUS_SERVICE_FILE data/org.freedesktop.Notifications.service) +set(DESKTOP_FILE data/ukui-notification-server.desktop) install(TARGETS ukui-notification-server DESTINATION /usr/bin) install(FILES ${DBUS_SERVICE_FILE} DESTINATION /usr/share/dbus-1/services) +install(FILES ${DESKTOP_FILE} DESTINATION /etc/xdg/autostart) diff --git a/notification-server/data/ukui-notification-server.desktop b/notification-server/data/ukui-notification-server.desktop new file mode 100644 index 0000000..3e3db1e --- /dev/null +++ b/notification-server/data/ukui-notification-server.desktop @@ -0,0 +1,16 @@ +[Desktop Entry] +Name=ukui-notification-server +Name[zh_CN]=通知服务 +GenericName=ukui-notification-server +GenericName[zh_CN]=通知服务 +Comment=ukui-notification-server +Comment[zh_CN]=通知服务 +Exec=/usr/bin/ukui-notification-server %U +Type=Application +#Icon= +X-UKUI-AutoRestart=true +OnlyShowIn=UKUI +NoDisplay=true +X-UKUI-Autostart-Phase=Application +Terminal=false +