diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,7 +66,7 @@ # The actual extension file # TODO would be nice if we could automate the packaging and generation of the crx # TODO do we need to use some form of KDE_INSTALL_TARGETS_DEFAULT_ARGS? - install(FILES extension.crx DESTINATION ${CMAKE_INSTALL_PREFIX}/share/plasma-browser-integration) + install(FILES extension.crx DESTINATION ${KDE_INSTALL_DATADIR}/plasma-browser-integration) elseif (INSTALL_CHROME_MANIFEST) # Install a policy to have browsers automatically add the extension diff --git a/chrome_install_locally_policy.in b/chrome_install_locally_policy.in --- a/chrome_install_locally_policy.in +++ b/chrome_install_locally_policy.in @@ -1,4 +1,4 @@ { - "external_crx": "@CMAKE_INSTALL_PREFIX@/share/plasma-browser-integration/extension.crx", + "external_crx": "@KDE_INSTALL_FULL_DATADIR@/plasma-browser-integration/extension.crx", "external_version": "@PROJECT_VERSION@" } diff --git a/org.kde.plasma.chrome_integration.json.in b/org.kde.plasma.chrome_integration.json.in --- a/org.kde.plasma.chrome_integration.json.in +++ b/org.kde.plasma.chrome_integration.json.in @@ -1,7 +1,7 @@ { "name": "org.kde.plasma.browser_integration", "description": "Native connector for KDE Plasma", - "path": "@CMAKE_INSTALL_PREFIX@/bin/plasma-browser-integration-host", + "path": "@KDE_INSTALL_FULL_BINDIR@/plasma-browser-integration-host", "type": "stdio", "allowed_origins": [ "chrome-extension://@CHROME_EXTENSION_ID@/" diff --git a/org.kde.plasma.firefox_integration.json.in b/org.kde.plasma.firefox_integration.json.in --- a/org.kde.plasma.firefox_integration.json.in +++ b/org.kde.plasma.firefox_integration.json.in @@ -1,7 +1,7 @@ { "name": "org.kde.plasma.browser_integration", "description": "Native connector for KDE Plasma", - "path": "@CMAKE_INSTALL_PREFIX@/bin/plasma-browser-integration-host", + "path": "@KDE_INSTALL_FULL_BINDIR@/plasma-browser-integration-host", "type": "stdio", "allowed_extensions": ["plasma-browser-integration@kde.org"] }