Bug 482295

Summary: KDE Connect add an unexpected '/' character at the front of the file saving path on Windows
Product: [Applications] kdeconnect Reporter: du33169
Component: windows-applicationAssignee: brute4s99 <piyushaggarwal002>
Status: REPORTED ---    
Severity: normal CC: du33169
Priority: NOR    
Version First Reported In: 23.08.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: an unexpected '/' character at the front of the file saving path

Description du33169 2024-03-03 12:06:29 UTC
Created attachment 166347 [details]
an unexpected '/' character at the front of the file saving path

SUMMARY

The program automatically adds a '/' before the path after the "Select a directory" Dialog when setting the file-saving path.

This behavior is supposed to be aimed at Linux, but on Windows, this will cause files to be saved to unexpected places if the user doesn't check it after the dialog is closed, and leads to the illusion that the file-sharing function is not working.

STEPS TO REPRODUCE

1. Double-click on the KDE Connect tray icon to open the main window and connect to a phone
2. Double-click on the name of the connected phone
3. Click "Plugin Settings"
4. Find "Share and Receive" and click the settings icon button
5. Click the "browse" icon button and select a directory

OBSERVED RESULT

There is an unexpected '/' at the front of the directory path (see attachment)

EXPECTED RESULT

No extra '/'

SOFTWARE/OS VERSIONS

Windows: 10
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION

The file-saving path can also be edited in the "configure" window opened from the tray menu. It is handled properly if set in this way (the window style is also fancier).