From 834f9c379038e74369bd4714c2c6e720d69ceda6 Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Wed, 10 Apr 2019 18:36:26 +0200 Subject: [PATCH] Handle sms: URLs too Handling those URLs works perfectly fine already, for transferring the phone number and the body, we just need to register for it. --- urlhandler/CMakeLists.txt | 2 +- urlhandler/org.kde.kdeconnect.smshandler.desktop | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 urlhandler/org.kde.kdeconnect.smshandler.desktop diff --git a/urlhandler/CMakeLists.txt b/urlhandler/CMakeLists.txt index d381b8a55..0e38edc6a 100644 --- a/urlhandler/CMakeLists.txt +++ b/urlhandler/CMakeLists.txt @@ -10,4 +10,4 @@ target_link_libraries(kdeconnect-handler ) install(TARGETS kdeconnect-handler ${INSTALL_TARGETS_DEFAULT_ARGS}) -install(PROGRAMS org.kde.kdeconnect.telhandler.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install(PROGRAMS org.kde.kdeconnect.telhandler.desktop org.kde.kdeconnect.smshandler.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) diff --git a/urlhandler/org.kde.kdeconnect.smshandler.desktop b/urlhandler/org.kde.kdeconnect.smshandler.desktop new file mode 100644 index 000000000..b200ee4ad --- /dev/null +++ b/urlhandler/org.kde.kdeconnect.smshandler.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=KDE Connect SMS URL Handler +Exec=kdeconnect-handler %U +Icon=kdeconnect +Type=Application +NoDisplay=true + +MimeType=x-scheme-handler/sms