https://bugs.kde.org/show_bug.cgi?id=507505
Bug ID: 507505
Summary: Download folder is not resolved correctly by default
on Windows platform leading to receiving files not
working OOB
Classification: Applications
Product: kdeconnect
Version First unspecified
Reported In:
Platform: Microsoft Windows
OS: Microsoft Windows
Status: REPORTED
Severity: normal
Priority: NOR
Component: windows-application
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
What I was attempting to do when I noticed the problem:
Sending file(s) from an Android device (using KDE connect app) to a Windows
laptop.
What happened:
The Android phone claims the file was sent, but I have no idea where to find
the file on the Windows laptop. There's no notification or indication on the
Windows laptop that a file was received. I checked the settings for the "share
and receive" plugin on the windows machine and the "save files in:" path is set
to "/C:/Users/wmcdannell/Desktop" (notice the leading forward slash).
I then headed over to
https://invent.kde.org/network/kdeconnect-kde/-/blob/master/plugins/share/shareplugin.cpp?ref_type=heads
to check the code for anything obvious.
The following code might be where the leading forward slash comes from (works
great on Android and linux of course) but I'm not familiar with cpp or the
project so it could be coming from elsewhere.
plugins/share/shareplugin.cpp
Lines 57-63
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
QUrl SharePlugin::getFileDestination(const QString filename) const
{
const QUrl dir = destinationDir().adjusted(QUrl::StripTrailingSlash);
QUrl destination(dir);
destination.setPath(dir.path() + QStringLiteral("/") + filename,
QUrl::DecodedMode);
return destination;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Moreover, in the plugin settings for "share and receive", I can put anything I
want in the "save files in" path. Even if it is not a valid path, when I click
"apply" it gets saved 😲. When apply is clicked, a little input validation and
checking that the chosen folder is writable by the app would probably be a good
idea.
Additionally concerning, on the windows platform in particular, is the lack of
information given to the user when a file is received. Even after updating the
path to be a valid path, when I send a file from the Android device there is no
notification of any kind to let me know that a file was sent to the laptop. The
file just shows up in the destination folder. I'm perfectly ok with that being
a more technically inclined user but a regular user of windows might be
wondering: did it work? where did it go? how do i get there? The fact that the
desktop folder is the default destination is good but I think a system
notification or a notification from the app would be more user friendly.
Version of KDE connect installed:
kdeconnect-kde-release_25.04-4975-windows-cl-msvc2022-x86_64.exe (latest
download as of 2025-07-24).
Platform details:
Edition Windows 11 Home
Version 24H2
Installed on ‎7/‎4/‎2025
OS build 26100.4770
Experience Windows Feature Experience Pack 1000.26100.197.0
--
You are receiving this mail because:
You are watching all bug changes.