Bug 350694 - notification sent by notify-send not shown via notifications on the panel
Summary: notification sent by notify-send not shown via notifications on the panel
Status: RESOLVED DUPLICATE of bug 342260
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: 5.2.0
Platform: Debian unstable Linux
: NOR normal
Target Milestone: 1.0
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-28 08:05 UTC by boris.sh.1983+kde.bugzilla
Modified: 2015-07-28 11:38 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 boris.sh.1983+kde.bugzilla 2015-07-28 08:05:09 UTC
When I click on "notifications" in the panel I expect to see notifications until they are removed or their timeout had arrived. 

in KDE4 If I sent several notifications with timeout they will be seen inside the notification until their timeout arrived. 

now when I send notifications using notify-send only a pop-up is raised for a few seconds (less then the timeout) , and no indication inside the "notification" window.

sending messages using wall does put notification and they are listed for few seconds inside the notification.

Reproducible: Always

Steps to Reproduce:
1.send few  messages with a timeout 

#!/bin/bash
for i in `seq 1 5`;
do
  notify-send "msg $i" -t 60000 
done

2.click on notification in the panel, check if you see 5 messages in the new window

Actual Results:  
text says no new notifications
5 pop ups that had been open for few seconds.

Expected Results:  
5 lines in notification window with the text msg 1 , msg 2, ... ,msg 5 that should be removed after a minute had passed .
Comment 1 boris.sh.1983+kde.bugzilla 2015-07-28 10:24:00 UTC
notification work as expected if the timeout is zero
Comment 2 Martin Klapetek 2015-07-28 10:58:55 UTC
The notifications applet only stores notifications that are persistent, cause they meant to be stored (they are "persistent"). Other notifications are meant to simply inform you something has happened, not stay around forever.

Besides, the timeout was fixed by the server, so that's why your timeout is less than what you set. This is fixed with Plasma 5.4.0.

*** This bug has been marked as a duplicate of bug 342260 ***
Comment 3 boris.sh.1983+kde.bugzilla 2015-07-28 11:35:01 UTC
I understand , I believe that this is a regression in the notification system . 

After this change I no longer have the ability to see non persistent alerts, as the notification pop up will vanish very fast (I think this is around the 10 seconds ) and will not be seen in the backlog. (the information is lost)

my use case is that I have a verity of scripts that send sensory alarms that are updated once in 3 seconds, after the timeout had past there is no need for that  info (it is not valid anymore)  but during that time there should be a way to see that alert.
Comment 4 Martin Klapetek 2015-07-28 11:38:24 UTC
As I said, the timeout was pretty much fixed in the notification server, this is fixed in Plasma 5.4. Starting with 5.4, it will always honor the timeout you pass to it, so if you have

$ notify-send -t 100000 hello

The popup bubble will stay for 100 seconds on the screen.

I think your usecase could be better solved using an applet or KStatusNotifierItem.