Empty trash twice, trash stop work, happened every time. Reproducible: Always Steps to Reproduce: In dolphin or DesktopView with trash.desktop. 1. Create a new text file, right click to move to trash, then empty trash 2. Again, create a new text file, right click to move to trash, then empty trash. now, trash stop work: 1, if click the trash.desktop in DesktopView, kuiserver5 will show "Examinning" "trash:/" and never finished. 2, Can not move any file to trash again. qt-5.5.1/framework 5.17/plamsa-5.4.3.
This issue also affect 'ktrash5 --empty', 'ktrash5 --empty' will hang every time. The root cause is in 'slotFinished' of 'emptytrashjob', here is a fix: diff -Nur kio-5.16.0/src/core/emptytrashjob.cpp kio-5.16.0new/src/core/emptytrashjob.cpp --- kio-5.16.0/src/core/emptytrashjob.cpp 2015-11-08 20:26:59.000000000 +0800 +++ kio-5.16.0new/src/core/emptytrashjob.cpp 2015-12-22 22:13:06.806386994 +0800 @@ -55,6 +55,10 @@ { //KNotification::event("Trash: emptied", QString(), QPixmap(), 0, KNotification::DefaultEvent); org::kde::KDirNotify::emitFilesAdded(QUrl(QStringLiteral("trash:/"))); + Q_D(EmptyTrashJob); + //Return slave to the scheduler + SimpleJob::slotFinished(); + } KIO::EmptyTrashJob *KIO::emptyTrash()
*** Bug 357023 has been marked as a duplicate of this bug. ***
Patch already submitted with help of Leslie. https://git.reviewboard.kde.org/r/126473/ mark as fixed.