aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/CMakeLists.txt12
-rw-r--r--data/indicator-session.service.in2
2 files changed, 7 insertions, 7 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index c00b8db..84fe66c 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -5,18 +5,18 @@ include (GSettings)
add_schemas(clinica-schemas ${CMAKE_SOURCE_DIR}/data/com.canonical.indicator.session.gschema.xml)
# .service file
-include (GNUInstallDirs)
-configure_file (indicator-session.service.in indicator-session.service)
+set(SERVICE_NAME "indicator-session.service")
+set(SERVICE_PATH "${CMAKE_CURRENT_BINARY_DIR}/${SERVICE_NAME}")
+set(pkglibexecdir "${CMAKE_INSTALL_FULL_LIBEXECDIR}/indicator-session")
+configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/${SERVICE_NAME}.in" "${SERVICE_PATH}")
+install (FILES ${SERVICE_PATH}
+ DESTINATION ${DBUSSERVICEDIR})
# .indicator file
install(FILES com.canonical.indicator.session
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/unity/indicators)
# FIXME install files
-#install(FILES
-#${CMAKE_CURRENT_BINARY_DIR}/indicator-datetime.service
-#DESTINATION share/indicator-datetime # FIXME to be the real install dir.
-#)
#
#install(FILES
#datetime-dialog.ui
diff --git a/data/indicator-session.service.in b/data/indicator-session.service.in
index a4d10a1..e520e20 100644
--- a/data/indicator-session.service.in
+++ b/data/indicator-session.service.in
@@ -1,3 +1,3 @@
[D-BUS Service]
Name=com.canonical.indicator.session
-Exec=@libexecdir@/indicator-session-service
+Exec=@pkglibexecdir@/indicator-session-service