diff --git a/core/dbushelper.h b/core/dbushelper.h index b287a9f65..5f7e85791 100644 --- a/core/dbushelper.h +++ b/core/dbushelper.h @@ -22,8 +22,10 @@ #define KDECONNECT_DBUSHELPER_H #include +#include "kdeconnectcore_export.h" + namespace DbusHelper { - void filterNonExportableCharacters(QString& s); + void KDECONNECTCORE_EXPORT filterNonExportableCharacters(QString& s); } #endif diff --git a/plugins/runcommand/CMakeLists.txt b/plugins/runcommand/CMakeLists.txt index 4a244cc2b..6c0a08a1e 100644 --- a/plugins/runcommand/CMakeLists.txt +++ b/plugins/runcommand/CMakeLists.txt @@ -15,6 +15,7 @@ set( kdeconnect_runcommand_config_SRCS runcommand_config.cpp ) add_library(kdeconnect_runcommand_config MODULE ${kdeconnect_runcommand_config_SRCS} ) target_link_libraries( kdeconnect_runcommand_config + kdeconnectcore kdeconnectpluginkcm KF5::I18n KF5::CoreAddons diff --git a/plugins/runcommand/runcommand_config.cpp b/plugins/runcommand/runcommand_config.cpp index 58f19695d..64cc46269 100644 --- a/plugins/runcommand/runcommand_config.cpp +++ b/plugins/runcommand/runcommand_config.cpp @@ -20,7 +20,6 @@ #include "runcommand_config.h" -#include #include #include #include @@ -32,9 +31,10 @@ #include #include - #include +#include + K_PLUGIN_FACTORY(ShareConfigFactory, registerPlugin();) @@ -132,6 +132,7 @@ void RunCommandConfig::save() if (key.isEmpty()) { key = QUuid::createUuid().toString(); + DbusHelper::filterNonExportableCharacters(key); } QJsonObject entry; entry[QStringLiteral("name")] = name;