Commit 17f8ebb6 authored by Albert Vaca Cintora's avatar Albert Vaca Cintora

Added standalone binary to run kdeconnect without kded

parent d782060b
......@@ -58,3 +58,22 @@ generate_and_install_dbus_interface(
install(TARGETS kded_kdeconnect DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kdeconnect.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded)
install(FILES kdeconnect.notifyrc DESTINATION ${DATA_INSTALL_DIR}/kdeconnect)
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
set(kdeconnect_standalone_SRCS
${kded_kdeconnect_SRCS}
main.cpp
)
kde4_add_executable(kdeconnect_standalone ${kdeconnect_standalone_SRCS})
target_link_libraries(kdeconnect_standalone
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
${KDE4_KIO_LIBS}
${QT_QTNETWORK_LIBRARY}
${QJSON_LIBRARIES}
${QCA2_LIBRARIES}
)
install(TARGETS kdeconnect_standalone ${INSTALL_TARGETS_DEFAULT_ARGS})
endif()
\ No newline at end of file
......@@ -98,6 +98,7 @@ Daemon::Daemon(QObject *parent, const QList<QVariant>&)
}
QDBusConnection::sessionBus().registerService("org.kde.kdeconnect");
QDBusConnection::sessionBus().registerObject("/modules/kdeconnect", this, QDBusConnection::ExportScriptableContents);
setDiscoveryEnabled(true);
......@@ -140,6 +141,7 @@ QStringList Daemon::devices()
void Daemon::onNewDeviceLink(const NetworkPackage& identityPackage, DeviceLink* dl)
{
const QString& id = identityPackage.get<QString>("deviceId");
//kDebug(kdeconnect_kded()) << "Device discovered" << id << "via" << dl->provider()->name();
......
......@@ -73,7 +73,7 @@ private:
QMap<QString, Device*> mDevices;
// The Initializer object sets things up, and also does cleanup when it goes out of scope
QCA::Initializer init;
QCA::Initializer mQcaInitializer;
};
......
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