diff --git a/CMakeLists.txt b/CMakeLists.txt index 55cf5c5c2..81652d3ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,7 +81,7 @@ if (KF5_OPTIONAL_COMPONENTS) endif() if (NOT ZSH_AUTOCOMPLETE_DIR) -set(ZSH_AUTOCOMPLETE_DIR "${CMAKE_INSTALL_PREFIX}/share/zsh/site-functions") +set(ZSH_AUTOCOMPLETE_DIR "${KDE_INSTALL_DATADIR}/share/zsh/site-functions") endif() option(PRIVATE_DBUS_ENABLED "Use private dbus session for kdeconnect" OFF) diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 1a7c00a4f..3fe70974f 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -1,5 +1,5 @@ -install (FILES "kdeconnect.contract" DESTINATION ${CMAKE_INSTALL_PREFIX}/share/contractor/) -install (FILES "kdeconnect-thunar.desktop" DESTINATION ${CMAKE_INSTALL_PREFIX}/share/Thunar/sendto/) +install (FILES "kdeconnect.contract" DESTINATION ${KDE_INSTALL_DATADIR}/share/contractor/) +install (FILES "kdeconnect-thunar.desktop" DESTINATION ${KDE_INSTALL_DATADIR}/share/Thunar/sendto/) install(PROGRAMS org.kde.kdeconnect_open.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}) if(NOT SAILFISHOS)