Bug 340068 - Please make completed notifications disappear
Summary: Please make completed notifications disappear
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: 5.1.0
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Martin Klapetek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-17 18:55 UTC by S
Modified: 2015-04-12 14:51 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.3.0


Attachments
Standard KIO copy dialog (36.91 KB, image/png)
2014-10-20 15:20 UTC, Martin Klapetek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description S 2014-10-17 18:55:11 UTC
Hello,

I strongly dislike the way that notifications for all events accumulate in the notification widget in the tray. This distracts me from my work and makes me constantly want to clear the messages. I only want to see notifications if they are in progress (i.e. file transfer in progress), but if they are completed or past notifications they really shouldn't be spamming my notifications queue.

I would suggest two options:
1. An option to completely disable the notification tray widget, while at the same time retaining the ability to see in-progress tasks like file transfers. Currently, I can disable notifications, but if I disable them I get no information about file transfer progress.
2. Another nice option would be to allow the notification tray widget, but automatically expire completed entries after a defined number of seconds.

Thanks for looking into this!

Reproducible: Always
Comment 1 Martin Klapetek 2014-10-17 18:57:51 UTC
Thanks for the report

Which notifications in particular are being stored in the history? In Plasma5 only persistent notifications are put in the notification history because, well, they are marked as persistent. This is in control of the application.

Most notifications in Plasma5 were made not persistent and as such should not do any spamming at all.
Comment 2 S 2014-10-17 19:02:06 UTC
Thanks a lot for the fast response!

So far, with my limited use of Plasma 5, completed file transfers are stored in the notifications history. I suspect that Kopete messages and network connect/disconnect notifications would also be stored?
Comment 3 Martin Klapetek 2014-10-17 19:15:16 UTC
> I suspect...

Well in the original report you stated "I strongly dislike the way that notifications for all events accumulate" so I thought you had more than just a suspicion :)

Completed file transfers will for now stay in the history. The use-case is simple - you're copying a big file which takes a long time and you leave the computer, after you come back you have a notification notifying you about a finished file transfer and also a button to quickly open the copied file or the folder where the files were copied.

Network connect/disconnect is not a persistent notification (at least wasn't last time I checked) and Kopete is not Plasma5 application, so if anything you should file a bug against Kopete for using persistent notifications (however they have a reason for being persistent...if they actually are).

---

Back to the original report:
> 1. An option to completely disable the notification tray widget

That could be added...maybe.

> 2. ... automatically expire completed entries after a defined number of seconds.

That is already happening, maybe the timeout could be lowered.
Comment 4 S 2014-10-17 19:27:27 UTC
Thanks a lot Martin! I'll make a note here of any pesky notifications as I see them. (Sorry for the assumption that Plasma 5 would make all notifications persistent like in KDE4, which was a major problem. :) )

And thanks for considering these two possible options to make it more flexible!
Comment 5 S 2014-10-18 02:07:38 UTC
So far it is behaving better than KDE4 did. But I do find it annoying 
that there is a persistent notification for every single file copied, 
even tiny ones that finish instantly. Maybe the auto-expire time could 
be set to be a percentage of the time it took to complete the action? Or 
else don't generate a notification if it takes less than 10 seconds or 
something.

Thanks again for looking into this, very much appreciated!
Comment 6 Christoph Feck 2014-10-18 03:28:38 UTC
> there is a persistent notification for every single file copied, even tiny ones that finish instantly

With the old Plasma you could use a separate KIO window for file progresses, and it only popped up for longer transfers. Additionally, when it popped up, you had the option to check "stay open after finished", so if you needed to access the destination after a long copy, you could instruct it to not hide.

Has this functionality been removed in Plasma 5?
Comment 7 Martin Klapetek 2014-10-20 09:44:51 UTC
No, KIO still displays the full blown dialog if the notifications widget (containing the jobs too) is not active. 

However the option to track jobs /is/ gone from the applet. That should be added back.
Comment 8 S 2014-10-20 15:12:41 UTC
(In reply to Martin Klapetek from comment #7)
> No, KIO still displays the full blown dialog if the notifications widget
> (containing the jobs too) is not active. 

Hmm, I couldn't get this to work. I tried un-checking the "Notifications" under "Extra Items" in the system tray settings, and when I copied a large file with Dolphin over smb:/ there was no progress notification anywhere. Am I doing something wrong? Thanks!
Comment 9 Martin Klapetek 2014-10-20 15:20:59 UTC
Created attachment 89214 [details]
Standard KIO copy dialog

Dunno, works here. Although I tried without running Plasma altogether, so maybe it's related to that.

I'll look into it.
Comment 10 Kai Uwe Broulik 2014-11-02 19:12:10 UTC
Looking at the code, the notification applet itself puts the "Copying Finished" notifications there, it's not told so by any external means.
While those notifications are useful after a long transfer, they do not communicate any status ("Copying failed"/"Copying aborted") and appear even if the user explicitly cancelled an operation. I can understand the desire for an option to get rid of those notifications.

The best solution, of course, would be having KIO emit those notifications since it knows what happened (user clicked Cancel, etc) instead of blindly emitting a "Finished" notification whenever a job, for whatever reason, exits.
Comment 11 Martin Klapetek 2014-11-03 17:09:06 UTC
Well technically even if it's aborted/cancelled, the job is still finished ;)

It's on my todo to make the job notifications more clever, one thing I wanted to do as well is detect if the system is idle and if yes, make the notification persistent, if not, it would not be persistent.
Comment 12 Kai Uwe Broulik 2014-11-06 13:55:04 UTC
Git commit 39045d5407c1a67c64e7f27074c012ea67124518 by Kai Uwe Broulik.
Committed on 06/11/2014 at 13:51.
Pushed by broulik into branch 'master'.

Alleviate the annoyance of Job Finished notifications

Whenever a job disappears for whatever reason (cancelled, finished, error, ...) we display
a persistent "Job Finished" notification. When the user explicitly cancels the job, there's
no need to confirm since the job will be gone. This solution is not ideal since we just track
it inside the plasmoid (ie. when you click Cancel in a "Override this folder?" dialog, it will
still show the notification) but at least the obvious "You don't say" moment is gone that way.

Ideally in the future whoever is responsible for the job (KIO, ...) should be given the
responsibility for an appropriate notification since the owner knows best why a job quit.

M  +5    -10   applets/notifications/package/contents/ui/JobDelegate.qml
M  +10   -1    applets/notifications/package/contents/ui/Jobs.qml

http://commits.kde.org/plasma-workspace/39045d5407c1a67c64e7f27074c012ea67124518
Comment 13 Martin Klapetek 2014-12-02 12:19:48 UTC
Git commit ba4fa4b2762fa9bf01ecbcb6f58d1a4448dea200 by Martin Klapetek, on behalf of Kai Uwe Broulik.
Committed on 06/11/2014 at 13:51.
Pushed by mklapetek into branch 'Plasma/5.1'.

Alleviate the annoyance of Job Finished notifications

Whenever a job disappears for whatever reason (cancelled, finished, error, ...) we display
a persistent "Job Finished" notification. When the user explicitly cancels the job, there's
no need to confirm since the job will be gone. This solution is not ideal since we just track
it inside the plasmoid (ie. when you click Cancel in a "Override this folder?" dialog, it will
still show the notification) but at least the obvious "You don't say" moment is gone that way.

Ideally in the future whoever is responsible for the job (KIO, ...) should be given the
responsibility for an appropriate notification since the owner knows best why a job quit.

M  +5    -10   applets/notifications/package/contents/ui/JobDelegate.qml
M  +10   -1    applets/notifications/package/contents/ui/Jobs.qml

http://commits.kde.org/plasma-workspace/ba4fa4b2762fa9bf01ecbcb6f58d1a4448dea200
Comment 14 Kai Uwe Broulik 2015-04-12 14:51:04 UTC
I would mark this as resolved in 5.3 now because:
- You can turn off jobs and/or notifications independently
- When you cancel a job no "finished" message is triggered
- When a job fails it emits a "failed" rather than "finished" message
- These notifications are removed from the history after 10mins of user activity