diff options
author | Ted Gould <ted@gould.cx> | 2014-09-09 04:21:58 +0000 |
---|---|---|
committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-09-09 04:21:58 +0000 |
commit | 4b15eb106da8764c3bd12e746b8f19bf458b7470 (patch) | |
tree | 299d5e2a5cdaab892fe7c92b9405f721635124e3 /data/CMakeLists.txt | |
parent | 059246d136ed8c24c5e78e6a966bf2dfc945fe4e (diff) | |
parent | 334e3b3130cbde5a96e6da5323d40418db80f8ef (diff) | |
download | ayatana-indicator-power-4b15eb106da8764c3bd12e746b8f19bf458b7470.tar.gz ayatana-indicator-power-4b15eb106da8764c3bd12e746b8f19bf458b7470.tar.bz2 ayatana-indicator-power-4b15eb106da8764c3bd12e746b8f19bf458b7470.zip |
Synchronize process management across indicators
Approved by: Charles Kerr, PS Jenkins bot
Diffstat (limited to 'data/CMakeLists.txt')
-rw-r--r-- | data/CMakeLists.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 51fc415..0750128 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -55,6 +55,27 @@ 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 ## |