Use KDE_INSTALL_FULL_BINDIR instead of hardcoding bin/ subdir

parent c41fd1d5
......@@ -35,7 +35,7 @@ cxx_check_feature ("c++11" "initializer-lists" "N2672" HAVE_CXX11_INITIALIZER_L
# Starting the actual project definition
# Config file
set (KAMD_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
set (KAMD_FULL_BIN_DIR "${KDE_INSTALL_FULL_BINDIR}")
set (KAMD_DATA_DIR "${KDE_INSTALL_DATADIR_KF5}/kactivitymanagerd/")
set (KAMD_PLUGIN_VERSION 1)
set (KAMD_PLUGIN_DIR "kactivitymanagerd/${KAMD_PLUGIN_VERSION}")
......
......@@ -6,7 +6,7 @@
#cmakedefine KAMD_PLUGIN_DIR "@KAMD_PLUGIN_DIR@"
#cmakedefine KAMD_FULL_PLUGIN_DIR "@KAMD_FULL_PLUGIN_DIR@"
#cmakedefine KAMD_INSTALL_PREFIX "@KAMD_INSTALL_PREFIX@"
#cmakedefine KAMD_FULL_BIN_DIR "@KAMD_FULL_BIN_DIR@"
#cmakedefine01 HAVE_CXX11_AUTO
#cmakedefine01 HAVE_CXX11_NULLPTR
......
[D-BUS Service]
Name=org.kde.ActivityManager
Exec=@CMAKE_INSTALL_PREFIX@/bin/kactivitymanagerd
Exec=@KAMD_FULL_BIN_DIR@/kactivitymanagerd
......@@ -376,7 +376,7 @@ int main(int argc, char **argv)
// Starting the dameon
QProcess::startDetached(
KAMD_INSTALL_PREFIX "/bin/kactivitymanagerd",
KAMD_FULL_BIN_DIR "/kactivitymanagerd",
QStringList{"start-daemon"}
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment