From 7276ec3b8266e53529fc92aca6e239eb95548c6e Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Fri, 11 Feb 2022 16:48:10 +0100 Subject: Drop pkglibexecdir and use native CMake file configuration --- data/CMakeLists.txt | 2 -- data/ayatana-indicator-session.desktop.in | 2 +- data/ayatana-indicator-session.service.in | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) (limited to 'data') diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 10616a0..9d7fd2e 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -30,7 +30,6 @@ if (${SYSTEMD_FOUND}) set (SYSTEMD_USER_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${SYSTEMD_USER_NAME}.in") # build it - set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}") configure_file ("${SYSTEMD_USER_FILE_IN}" "${SYSTEMD_USER_FILE}") # install it @@ -52,7 +51,6 @@ 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 diff --git a/data/ayatana-indicator-session.desktop.in b/data/ayatana-indicator-session.desktop.in index dffd22b..0309030 100644 --- a/data/ayatana-indicator-session.desktop.in +++ b/data/ayatana-indicator-session.desktop.in @@ -1,7 +1,7 @@ [Desktop Entry] Type=Application Name=Ayatana Indicator Session -Exec=@pkglibexecdir@/ayatana-indicator-session-service +Exec=@CMAKE_INSTALL_FULL_LIBEXECDIR@/ayatana-indicator-session/ayatana-indicator-session-service OnlyShowIn=Unity;MATE;XFCE;Budgie:GNOME; NoDisplay=true StartupNotify=false diff --git a/data/ayatana-indicator-session.service.in b/data/ayatana-indicator-session.service.in index fccae82..3ab4654 100644 --- a/data/ayatana-indicator-session.service.in +++ b/data/ayatana-indicator-session.service.in @@ -4,7 +4,7 @@ PartOf=graphical-session.target PartOf=ayatana-indicators.target [Service] -ExecStart=@pkglibexecdir@/ayatana-indicator-session-service +ExecStart=@CMAKE_INSTALL_FULL_LIBEXECDIR@/ayatana-indicator-session/ayatana-indicator-session-service Restart=on-failure [Install] -- cgit v1.2.3