From 1427e66a0dd74f2a73a2f7d8ac323643aa68fd0e Mon Sep 17 00:00:00 2001
From: Egor Ignatov <egori@altlinux.org>
Date: Fri, 9 Apr 2021 16:15:34 +0000
Subject: [PATCH 1/2] [kio] Add trailing slash to device url

The absence of a trailing slash makes the QUrl's path field empty,
which make the url invalid.

BUG: 409179
---
 src/kio/bluetooth/kiobluetooth.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/kio/bluetooth/kiobluetooth.cpp b/src/kio/bluetooth/kiobluetooth.cpp
index c19070407..ca8286cd2 100644
--- a/src/kio/bluetooth/kiobluetooth.cpp
+++ b/src/kio/bluetooth/kiobluetooth.cpp
@@ -169,7 +169,7 @@ void KioBluetooth::listDevice(const DeviceInfo device)
         return;
     }
     QString target = QStringLiteral("bluetooth://");
-    target.append(QString(device[QStringLiteral("address")]).replace(QLatin1Char(':'), QLatin1Char('-')));
+    target.append(QString(device[QStringLiteral("address")]).replace(QLatin1Char(':'), QLatin1Char('-')) + QLatin1Char('/'));
 
     KIO::UDSEntry entry;
     entry.fastInsert(KIO::UDSEntry::UDS_URL, target);
-- 
GitLab


From 27991b56be4087fc84bfae054289d2980cae4466 Mon Sep 17 00:00:00 2001
From: Egor Ignatov <egori@altlinux.org>
Date: Mon, 12 Apr 2021 17:37:47 +0300
Subject: [PATCH 2/2] [sendfile] Update org.kde.bluedevilsendfile.desktop

Associate bluedevil-sendfile with application/vnd.kde.bluedevil-sendfile
mime type.
---
 src/sendfile/org.kde.bluedevilsendfile.desktop | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/sendfile/org.kde.bluedevilsendfile.desktop b/src/sendfile/org.kde.bluedevilsendfile.desktop
index 54ef58367..9c739fb62 100644
--- a/src/sendfile/org.kde.bluedevilsendfile.desktop
+++ b/src/sendfile/org.kde.bluedevilsendfile.desktop
@@ -136,9 +136,10 @@ Comment[zh_CN]=BlueDevil 文件发送
 Comment[zh_TW]=BlueDevil 傳送檔案
 
 Type=Application
-Exec=bluedevil-sendfile
+Exec=bluedevil-sendfile -k %u
 Icon=preferences-system-bluetooth
 Terminal=false
 NoDisplay=true
 Categories=Qt;KDE;X-Bluetooth;Network;
 X-DBUS-ServiceName=org.kde.bluedevilsendfile
+MimeType=application/vnd.kde.bluedevil-sendfile
-- 
GitLab