diff options
author | Ted Gould <ted@gould.cx> | 2013-10-28 17:31:50 -0700 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2013-10-28 17:31:50 -0700 |
commit | 67c319bdd36972d74977323ed181574902bfe658 (patch) | |
tree | 6622037a8a709a667339beb4c6387b3a120255d9 /data | |
parent | f33e02386a7bff8c3fbf092af513fabb9b8a1fee (diff) | |
download | ayatana-indicator-session-67c319bdd36972d74977323ed181574902bfe658.tar.gz ayatana-indicator-session-67c319bdd36972d74977323ed181574902bfe658.tar.bz2 ayatana-indicator-session-67c319bdd36972d74977323ed181574902bfe658.zip |
XDG Autostart file
Diffstat (limited to 'data')
-rw-r--r-- | data/CMakeLists.txt | 21 | ||||
-rw-r--r-- | data/indicator-session.desktop.in | 9 |
2 files changed, 30 insertions, 0 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index d52d388..163e2cd 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -38,6 +38,27 @@ install (FILES "${UPSTART_JOB_FILE}" ## +## XDG Autostart Config File +## + +# where to install +set (XDG_AUTOSTART_DIR "/etc/xdg/autostart") +message (STATUS "${XDG_AUTOSTART_DIR} is the XDG Autostart install dir") + +set (XDG_AUTOSTART_NAME "${CMAKE_PROJECT_NAME}.desktop") +set (XDG_AUTOSTART_FILE "${CMAKE_CURRENT_BINARY_DIR}/${XDG_AUTOSTART_NAME}") +set (XDG_AUTOSTART_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${XDG_AUTOSTART_NAME}.in") + +# build it +set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}") +configure_file ("${XDG_AUTOSTART_FILE_IN}" "${XDG_AUTOSTART_FILE}") + +# install it +install (FILES "${XDG_AUTOSTART_FILE}" + DESTINATION "${XDG_AUTOSTART_DIR}") + + +## ## Unity Indicator File ## diff --git a/data/indicator-session.desktop.in b/data/indicator-session.desktop.in new file mode 100644 index 0000000..b6d289d --- /dev/null +++ b/data/indicator-session.desktop.in @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=Indicator Session +Exec=@pkglibexecdir@/indicator-session-service +NotShowIn=Unity; +NoDisplay=true +StartupNotify=false +Terminal=false + |