Bug 411945 - Notifications since 5.16 are not kept in history if app is not configured
Summary: Notifications since 5.16 are not kept in history if app is not configured
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: 5.16.5
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-15 19:30 UTC by Stefan K.
Modified: 2019-09-20 15:38 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
I guess (kdialog/notify-send or another) application should appear here? (89.20 KB, image/png)
2019-09-15 19:30 UTC, Stefan K.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan K. 2019-09-15 19:30:32 UTC
Created attachment 122672 [details]
I guess (kdialog/notify-send or another) application should appear here?

SUMMARY

Since the new notification subsystem in Plasma 5.16 has been introduced notifications (provider/issuer) not in the "available list" of applications do not apprear in history anymore. They are gone after timeout.


STEPS TO REPRODUCE
1. Use "kdialog" or "notify-send" and send a notification. In "konsole" for example.

kdialog --title 'foobar' --passivepopup 'lorem ipsum dolor sit amet...'
notify-send 'foobar' 'lorem ipsum dolor sit amet...'


OBSERVED RESULT

The popup is shown (and timeout runs) but not kept in history.


EXPECTED RESULT

They should remain in history.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Linux 5.2.12 (KDE Neon Bionic based)
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.61.0
Qt Version: 5.12.3

ADDITIONAL INFORMATION

How can I add "unknown apps" to the listing? Or use a workaround to restore the old behaviour?

signal time=1568575008.019264 sender=org.freedesktop.DBus -> destination=:1.94 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
string ":1.94"
signal time=1568575008.019308 sender=org.freedesktop.DBus -> destination=:1.94 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
string ":1.94"
method call time=1568575012.889604 sender=:1.95 -> destination=:1.22 serial=6 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=GetServerInformation
method call time=1568575012.890071 sender=:1.95 -> destination=:1.22 serial=7 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
string "notify-send"
uint32 0
string ""
string "foobar"
string "lorem ipsum dolor sit amet..."
array [
]
array [
dict entry(
string "urgency"
variant             byte 1
)
]
int32 -1
signal time=1568575020.601731 sender=:1.22 -> destination=(null destination) serial=652 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=NotificationClosed
uint32 13
uint32 1
method call time=1568575022.333829 sender=:1.96 -> destination=org.freedesktop.Notifications serial=6 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
string "kdialog"
uint32 0
string "dialog-information"
string "foobar"
string "lorem ipsum dolor sit amet..."
array [
]
array [
]
int32 10000
signal time=1568575031.972289 sender=:1.22 -> destination=(null destination) serial=655 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=NotificationClosed
uint32 14
uint32 1
^C
Comment 1 Nate Graham 2019-09-15 22:12:32 UTC
This is deliberate, but maybe we should revisit it, or make it configurable... :/
Comment 2 Kai Uwe Broulik 2019-09-16 09:52:49 UTC
You need to set the name of a valid desktop entry:

notify-send foo bar -h string:desktop-entry:firefox
Comment 3 Stefan K. 2019-09-20 15:38:49 UTC
Ah, I see. Thank you.

If anyone has not installed firefox (like me) one can use "org.kde.konsole" instead. As far as I can see kdialog has no such option? At least it does not matter (to me) because it can be replaced by notify-send.

Can notify-send be added to the application list without changing the source code? If not do not bother as I will change my scripts. If yes it would be nice to get a hint :)