diff --git a/shell_integration/dolphin/CMakeLists.txt b/shell_integration/dolphin/CMakeLists.txt index 33ab47f4f..6bf9c0e6b 100644 --- a/shell_integration/dolphin/CMakeLists.txt +++ b/shell_integration/dolphin/CMakeLists.txt @@ -49,5 +49,6 @@ target_link_libraries(${OWNCLOUDDOLPHINOVERLAYPLUGIN} KF5::CoreAddons KF5::KIOCo set(OWNCLOUDDOLPHINACTIONPLUGIN ${APPLICATION_EXECUTABLE}dolphinactionplugin) add_library(${OWNCLOUDDOLPHINACTIONPLUGIN} MODULE ownclouddolphinactionplugin.cpp) target_link_libraries(${OWNCLOUDDOLPHINACTIONPLUGIN} KF5::CoreAddons KF5::KIOCore KF5::KIOWidgets ${OWNCLOUDDOLPHINHELPER}) +configure_file(ownclouddolphinactionplugin.desktop.in ownclouddolphinactionplugin.desktop ESCAPE_QUOTES @ONLY) install(FILES ownclouddolphinactionplugin.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} RENAME ${OWNCLOUDDOLPHINACTIONPLUGIN}.desktop) install(TARGETS ${OWNCLOUDDOLPHINACTIONPLUGIN} DESTINATION ${KDE_INSTALL_PLUGINDIR}) diff --git a/shell_integration/dolphin/ownclouddolphinactionplugin.desktop b/shell_integration/dolphin/ownclouddolphinactionplugin.desktop.in similarity index 56% rename from shell_integration/dolphin/ownclouddolphinactionplugin.desktop rename to shell_integration/dolphin/ownclouddolphinactionplugin.desktop.in index bf60f79da..9d8a062ca 100644 --- a/shell_integration/dolphin/ownclouddolphinactionplugin.desktop +++ b/shell_integration/dolphin/ownclouddolphinactionplugin.desktop.in @@ -1,6 +1,6 @@ [Desktop Entry] Type=Service -Name=OwncloudAction +Name=@APPLICATION_NAME@Action ServiceTypes=KFileItemAction/Plugin MimeType=application/octet-stream;inode/directory; -X-KDE-Library=ownclouddolphinactionplugin +X-KDE-Library=@APPLICATION_EXECUTABLE@dolphinactionplugin