Bug 319384

Summary: undefined notification pops up after emptying the trash
Product: [Unmaintained] kio Reporter: Tomasz Kołosowski <kde>
Component: trashAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: minor CC: alex.ioannou, cjacker, clearmartin, corrado.mella, enoopt.adams, jsardid, mrboese, nate, plasma-bugs, vindrg
Priority: NOR    
Version: 4.10.2   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
URL: http://i.imgur.com/6OhYQsT.png
See Also: https://bugs.kde.org/show_bug.cgi?id=311824
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot of the trash emptied notification
Screen Grab of notification

Description Tomasz Kołosowski 2013-05-05 22:22:36 UTC
After emptying the trash, notification that poped out had "undefined" text inside it. Screenshot in URL. I use polish translation.
Happens only when you remove larger amount of data, as small removes generate no popup at all. Haven't tried to reproduce it with popup because i find nothing more to remove, sorry :P

Reproducible: Didn't try

Steps to Reproduce:
1. Put large(r) amount of data in your trash
2. Empty it
Comment 1 Maarten De Meyer 2013-05-15 02:53:42 UTC
*** Bug 317256 has been marked as a duplicate of this bug. ***
Comment 2 Maarten De Meyer 2013-05-15 02:53:57 UTC
*** Bug 313184 has been marked as a duplicate of this bug. ***
Comment 3 Martin Kostolný 2013-12-03 08:39:40 UTC
I daily produce a lot of trash and delete it afterwards. Therefore I can confirm this bug on KDE 4.11.3, Arch Linux. The "undefined" message happens every time I empty larger amount of data from trash can.
Comment 4 Ruman Gerst 2013-12-03 18:31:37 UTC
Also confirmed for Kubuntu 13.10.
Comment 5 Cjacker 2013-12-30 07:57:33 UTC
Add a infoMessage call to kio_trash can fix the problem("trash empty popup" with "undefined" titlte.)

diff -Nur kde-runtime-4.12.0/kioslave/trash/kio_trash.cpp kde-runtime-4.12.0.fix/kioslave/trash/kio_trash.cpp
--- kde-runtime-4.12.0/kioslave/trash/kio_trash.cpp 2013-12-30 15:49:56.579077420 +0800
+++ kde-runtime-4.12.0.fix/kioslave/trash/kio_trash.cpp 2013-12-30 15:50:19.192077759 +0800
@@ -469,9 +469,10 @@

     switch (cmd) {
     case 1:
-        if ( impl.emptyTrash() )
+        if ( impl.emptyTrash() ) {
+            infoMessage(i18n("emtpy trash"));
             finished();
-        else
+        } else
             error( impl.lastErrorCode(), impl.lastErrorMessage() );
         break;
     case 2:
Comment 6 Tomasz Kołosowski 2013-12-30 20:46:31 UTC
I don't want to sound picky but you made a typo there: "emtpy trash"

Cheers :)
Comment 7 Cjacker 2013-12-31 11:54:25 UTC
Sorry about that:-)

this workaround or fix only fix the "empty trash" problem.

It seems "restore a file" still had such problem, maybe in some copy/move Kio jobs in trashimpl.cpp, I did not find a correct way to fix them.
Comment 8 Darryl 2014-04-29 17:46:03 UTC
Created attachment 86349 [details]
screenshot of the trash emptied notification

My system is  Kubuntu 14.04, KDE 4.13.0, x64. This: "undefined [Finished]" notification happens every time I empty the trash.
Comment 9 Vincas Dargis 2014-05-07 19:50:16 UTC
I can confirm, Kubuntu 14.04 x64, "undefined" notification is still there.
Comment 10 Corrado Mella 2014-12-08 14:46:29 UTC
Created attachment 89868 [details]
Screen Grab of notification
Comment 11 Corrado Mella 2014-12-08 14:48:26 UTC
I can confirm the bug is still present on Kubuntu 14.04 LTS, KDE 4.13.3
Comment 12 Alex Ioannou 2015-02-26 14:29:33 UTC
It is present in 14.10 too, KDE 4.14.2.
Comment 13 Nate Graham 2018-04-16 19:45:18 UTC
Works for me in KDE Frameworks 5.45.