aboutsummaryrefslogtreecommitdiff
path: root/data/CMakeLists.txt
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-03-20 19:17:46 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-03-20 19:17:46 +0000
commita93745a8d72665c7417bf44469eee898354894ed (patch)
tree266849534020accd846c0451546abb23aedbff08 /data/CMakeLists.txt
parent24a6aab4da668917c9d4e3d84a0d68a70d5d4632 (diff)
parent699d20fbe7cb32077bc332dab8cc70d70f894883 (diff)
downloadayatana-indicator-session-a93745a8d72665c7417bf44469eee898354894ed.tar.gz
ayatana-indicator-session-a93745a8d72665c7417bf44469eee898354894ed.tar.bz2
ayatana-indicator-session-a93745a8d72665c7417bf44469eee898354894ed.zip
Synchronize process management across indicators
Diffstat (limited to 'data/CMakeLists.txt')
-rw-r--r--data/CMakeLists.txt20
1 files changed, 20 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