diff options
author | Ted Gould <ted@gould.cx> | 2014-02-20 10:19:05 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-02-20 10:19:05 -0600 |
commit | 38ac3972053682719c31d65654ef6a493256885c (patch) | |
tree | 57093cd7ae8147b752da6642dad84b41bb3517a6 /data | |
parent | f8e72e14de0a4267ba80d15fcec446c964068e39 (diff) | |
download | ayatana-indicator-session-38ac3972053682719c31d65654ef6a493256885c.tar.gz ayatana-indicator-session-38ac3972053682719c31d65654ef6a493256885c.tar.bz2 ayatana-indicator-session-38ac3972053682719c31d65654ef6a493256885c.zip |
Adding in an Upstart override
Diffstat (limited to 'data')
-rw-r--r-- | data/CMakeLists.txt | 20 | ||||
-rw-r--r-- | data/indicator-session.upstart.desktop.in | 9 |
2 files changed, 29 insertions, 0 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 163e2cd..a6a2e9f 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -57,6 +57,26 @@ configure_file ("${XDG_AUTOSTART_FILE_IN}" "${XDG_AUTOSTART_FILE}") install (FILES "${XDG_AUTOSTART_FILE}" DESTINATION "${XDG_AUTOSTART_DIR}") +## +## Upstart XDG Autostart Override +## + +# where to install +set (UPSTART_XDG_AUTOSTART_DIR "${CMAKE_INSTALL_FULL_DATAROOTDIR}/upstart/xdg/autostart") +message (STATUS "${UPSTART_XDG_AUTOSTART_DIR} is the Upstart XDG autostart override dir") + +set (UPSTART_XDG_AUTOSTART_NAME "${CMAKE_PROJECT_NAME}.upstart.desktop") +set (UPSTART_XDG_AUTOSTART_FILE "${CMAKE_CURRENT_BINARY_DIR}/${UPSTART_XDG_AUTOSTART_NAME}") +set (UPSTART_XDG_AUTOSTART_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${UPSTART_XDG_AUTOSTART_NAME}.in") + +# build it +set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}") +configure_file ("${UPSTART_XDG_AUTOSTART_FILE_IN}" "${UPSTART_XDG_AUTOSTART_FILE}") + +# install it +install (FILES "${UPSTART_XDG_AUTOSTART_FILE}" + DESTINATION "${UPSTART_XDG_AUTOSTART_DIR}" + RENAME "${XDG_AUTOSTART_NAME}") ## ## Unity Indicator File diff --git a/data/indicator-session.upstart.desktop.in b/data/indicator-session.upstart.desktop.in new file mode 100644 index 0000000..f4970f6 --- /dev/null +++ b/data/indicator-session.upstart.desktop.in @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=Indicator Session +Exec=@pkglibexecdir@/indicator-session-service +OnlyShowIn=Unity; +NoDisplay=true +StartupNotify=false +Terminal=false +Hidden=true |