From 01de53a10eff21e5d75d94b17ad3a76bc1576619 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Tue, 3 Aug 2021 02:22:36 +0200 Subject: Add XDG autostart stuff - data/ayatana-indicator-display.desktop.in: Add file - data/CMakeLists.txt: Add XDG autostart section --- data/CMakeLists.txt | 10 ++++++++++ data/ayatana-indicator-display.desktop.in | 8 ++++++++ 2 files changed, 18 insertions(+) create mode 100644 data/ayatana-indicator-display.desktop.in (limited to 'data') diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 177e8fd..df734f1 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -28,6 +28,16 @@ configure_file ("${SYSTEMD_USER_FILE_IN}" "${SYSTEMD_USER_FILE}") install (FILES "${SYSTEMD_USER_FILE}" DESTINATION "${SYSTEMD_USER_DIR}") +## +## XDG Autostart Config File +## + +# build it +configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/${CMAKE_PROJECT_NAME}.desktop.in" "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}.desktop") + +# install it +install (FILES "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}.desktop" DESTINATION "/etc/xdg/autostart") + ## ## Ayatana Indicator File ## diff --git a/data/ayatana-indicator-display.desktop.in b/data/ayatana-indicator-display.desktop.in new file mode 100644 index 0000000..d51920d --- /dev/null +++ b/data/ayatana-indicator-display.desktop.in @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=Ayatana Indicator Display +Exec=@CMAKE_INSTALL_FULL_LIBEXECDIR@/ayatana-indicator-display-service +OnlyShowIn=Unity;MATE;XFCE;Budgie:GNOME; +NoDisplay=true +StartupNotify=false +Terminal=false -- cgit v1.2.3