https://bugs.kde.org/show_bug.cgi?id=463751
Bug ID: 463751 Summary: Cannot restore files sent to Trash via Qt because Dolphin incorrectly handles absolute paths for .trashinfo Classification: Frameworks and Libraries Product: frameworks-kio Version: 5.101.0 Platform: Archlinux OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Trash Assignee: fa...@kde.org Reporter: bugsefor...@gmx.com CC: kdelibs-b...@kde.org Target Milestone: --- SUMMARY A few days a bug was reported in the bug tracker of Strawberry player because it is impossible to restore audio files deleted with it. The Strawberry developer identified a bug with Dolphin: "The paths being wrong is a KDE bug, while the character encoding issue is a Qt bug. If you look at the trashinfo files in the .Trash-1000/info directory, you can see that those created by Qt are with absolute paths, but Dolphin incorrectly handles absolute paths for .trashinfo. Dolphin itself does not use Qt for moving files to trash, and uses relative paths, which is why it works for files deleted by Dolphin. According to the specifications (https://specifications.freedesktop.org/trash-spec/trashspec-1.0.html), it should be possible to use both. You can also see by looking at the trashinfo files that the ones deleted using Qt is not URL encoded like they should. I have submitted a fix to Qt for the encoding issue, and also proposed to change the paths to relative paths when possible: https://codereview.qt-project.org/c/qt/qtbase/+/450647" link to Strawberry bug: https://github.com/strawberrymusicplayer/strawberry/issues/1086 EXPECTED RESULT Dolphin should be able to restore files sent to Trash via Qt SOFTWARE/OS VERSIONS Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.26.80 KDE Frameworks Version: 5.102.0 Qt Version: 5.15.7 Graphics Platform: Wayland -- You are receiving this mail because: You are watching all bug changes.