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 +