Bug 393653

Summary: Trash is shown in Open dialog
Product: [Frameworks and Libraries] frameworks-kio Reporter: Sefa Eyeoglu <contact>
Component: Open/save dialogsAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: bugseforuns, kde, kdelibs-bugs, nate
Priority: NOR    
Version: 5.45.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Sefa Eyeoglu 2018-04-29 19:28:09 UTC
The open dialog shows Trash in the Places section, although it is not possible to open a file in trash. "trash://" should be blocked in open and save dialogs.
Comment 1 Kai Uwe Broulik 2018-04-30 07:41:37 UTC
You sure can open files from trash, just tried in Kate. Places panel was recently updated to not show unsupported protocols. When an application only supports local (file:/) urls trash should not be shown.

Which application is this?
Comment 2 Kai Uwe Broulik 2018-04-30 07:43:35 UTC
It does list it in the save dialog although saving there yields an access denied error. The trash protocol specifies "can write", so not sure how to fix that
Comment 3 Sefa Eyeoglu 2018-04-30 14:34:27 UTC
If I open a file in Chromium, I can select from Trash, but clicking Open does nothing. In Kate I am able to open a file in the Trash, but can't write. Can't we just. 
We could hide trash:/ by hardcoding it into kio.
Comment 4 Kai Uwe Broulik 2018-05-03 06:24:18 UTC
This patch [1] fixes Trash showing up in "Save As" dialog in Chromium.

[1] https://cgit.kde.org/kdialog.git/commit/?id=975a49b3494b727dfa052c9a6e0aed28fced1cbb
Comment 5 Sefa Eyeoglu 2018-05-12 13:21:18 UTC
That looks good. i would say, that this issue has been resolved.
Comment 6 Christoph Feck 2018-05-12 13:58:38 UTC
Thanks for the update; closing.