Bug 440495 - Dolphin opens Trash after directory deletion
Summary: Dolphin opens Trash after directory deletion
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 21.07.80
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-01 13:23 UTC by Ilya Bizyaev
Modified: 2021-08-04 15:35 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Bizyaev 2021-08-01 13:23:28 UTC
SUMMARY
When I move directories to Trash in Dolphin, it often opens Trash afterwards, which is never intended. Apparently it is due to fast keyboard navigation.


STEPS TO REPRODUCE
1. Open Dolphin
2. Create a new folder in your home directory
3. Use your keyboard to check its contents and move it to trash:
Enter -> Backspace -> Delete (in rapid succession)

OBSERVED RESULT
Dolphin opens Trash


EXPECTED RESULT
No side effects to deleting a directory


SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 15.3
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2


ADDITIONAL INFORMATION
I've disabled a confirmation dialog for moving to Trash, in case it makes a difference
Comment 1 Nate Graham 2021-08-02 19:47:53 UTC
Cannot reproduce.
Comment 2 Ilya Bizyaev 2021-08-02 20:02:39 UTC
Indeed, seems to require more conditions:
* The terminal pane has to be open
* It has to have a large log (which happens naturally when you browse for a while with the terminal pane open)

So, updated steps:
1. Close Dolphin with the visible terminal pane
2. Reopen Dolphin, the terminal pane will be displayed with your favorite shell (zsh here) but without the plugins (another Dolphin bug)
3. `cat` a long text file to fill the log
4. Create a new folder in your home directory
5. Use your keyboard to check its contents and move it to trash:
Enter -> Backspace -> Delete (in rapid succession)
Comment 3 Jordan 2021-08-04 15:34:50 UTC
I was able to reproduce with a bare terminal panel. Dolphin specifically changes directly to ~/.local/share/Trash/fiiles/New Folder, and the terminal panel's working directory remains at ~/New Folder.

The issue seems to stem from changing from ~/New Folder back to ~/ quickly enough that the terminal panel doesn't cd, from which point you delete the New Folder and Dolphin takes you to the Trash.