Trashing many items temporarily blocks Thunar
4.18.11 Manjaro Version information
Steps to reproduce
- On your desktop, for example, do the following: mkdir testdir; cd testdir; seq 1 10000|xargs -n 1 mkdir
- open the newly created testdir folder with Thunar (I just double-clicked it from the desktop)
- select all of its items (CTRL-a)
- move the selected files to trash, e.g. by hitting the del key
Current behavior
The items are being moved to the trash one by one, which takes a while (you can watch that from a terminal by doing ls -1|wc -l within the testdir). In during that period, Thunar is blocked, i.e. no Thunar windows (which previously have been opened from the desktop) can be closed or new ones opened (at least from the desktop; explicitly launching a new instance of thunar, e.g. via terminal, does work, and that one behaves normally, even correctly shows 10,000 items in trash), even for a good while after no items are left in testdir. In that period of time, the trash bin's shape does not change to "non-empty" either (if it had been empty before). The responsiveness of the overall system as such does not seem to be affected, windows can be moved around, other applications are running and can be switched to back and forth, etc. Top is showing gvfsd-trash to be running at full speed. This is probably OK as such (isn't it?), but it should not hang the running Thunar instance.
Expected outcome
The items are being moved to the trash one by one, which takes a while. Ideally, no blocking of Thunar should occur. Maybe a progress bar/dialog should appear.