feat:增加自启动desktop文件
This commit is contained in:
parent
2bf244d5b1
commit
5cf7487027
|
@ -42,5 +42,7 @@ else()
|
||||||
qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR}/translations ${TS_FILES})
|
qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR}/translations ${TS_FILES})
|
||||||
endif()
|
endif()
|
||||||
set(DBUS_SERVICE_FILE data/org.freedesktop.Notifications.service)
|
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(TARGETS ukui-notification-server DESTINATION /usr/bin)
|
||||||
install(FILES ${DBUS_SERVICE_FILE} DESTINATION /usr/share/dbus-1/services)
|
install(FILES ${DBUS_SERVICE_FILE} DESTINATION /usr/share/dbus-1/services)
|
||||||
|
install(FILES ${DESKTOP_FILE} DESTINATION /etc/xdg/autostart)
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue