https://bugs.kde.org/show_bug.cgi?id=456355
Bug ID: 456355
Summary: Hitting "Points to" button resolves path wrong from
desktop link
Product: frameworks-kio
Version: git master
Platform: Other
OS: Linux
Status: REPORTED
Severity: minor
Priority: NOR
Component: Properties dialog
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
SUMMARY
Currently when "Points to" button in desktop link properties is clicked the
resolvedTargetLocation for example
QUrl("desktop:/home/yerrey/Pictures/avatar.png") is resolved into
"/home/yerrey/Desktop/home/yerrey/Pictures/avatar.png" which cannot be found.
The following change seems to fix the issue, but I'm not too familiar with KIO
code to know if this is the correct solution or misses some edge cases I'm
unaware of.
https://invent.kde.org/yerrey/kio/-/commit/ac516f38200557abab5a44f739c1bcc13e3ce061
With this the resolvedTargetLocation is correctly
QUrl("file:///home/yerrey/Pictures/avatar.png") .
STEPS TO REPRODUCE
1. Drag a file to your desktop, and choose "Link"
2. On your desktop, open the properties of the link
3. On the "Points to" line, hit the button to highlight the file in Dolphin
OBSERVED RESULT
The path cannot be found as it has prepended the correct path with Desktop
path.
EXPECTED RESULT
Correct file is highlighted.
SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.25.80
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
KIO: Master
--
You are receiving this mail because:
You are watching all bug changes.