Bug 408901

Summary: notify-send notifications have no Configure option
Product: [Frameworks and Libraries] frameworks-knotifications Reporter: Dominik Stańczak <stanczakdominik>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: kde, kdelibs-bugs-null, nate, stanczakdominik
Priority: NOR    
Version First Reported In: 5.59.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of missing Configure button

Description Dominik Stańczak 2019-06-19 09:32:02 UTC
Created attachment 120993 [details]
Screenshot of missing Configure button

SUMMARY
Notifications sent via libnotify from certain non-KDE applications (such as https://github.com/kevinschoon/pomo) or from notify-send have no Configure option, and as such cannot be set to show up despite Do Not Disturb mode.

STEPS TO REPRODUCE
1. open up a terminal
2. `notify-send 'test'`
3. open up the KNotifications panel


OBSERVED RESULT

notify-send notifications have no Configure button, in contrast to other applications such as Discord and Discover

EXPECTED RESULT

It would be nice to let them be configured somehow, since at this moment Do Not Disturb (which is an amazing and much welcome feature) simply filters all of them.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 5.16.0
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.4
Comment 1 Nate Graham 2019-06-19 11:50:34 UTC
In order for those options to show up, the notification has to be associated with an app somehow. I don't know if this is possible using notify-send, but for apps using the API it's up to them to make sure this happens. CCing Kai for clarification.
Comment 2 Kai Uwe Broulik 2019-06-19 13:12:25 UTC
A notification needs to have a desktop entry of an application associated with it in order to be configurable:

notify-send foo bar -h string:desktop-entry:org.kde.konversation
Comment 3 Dominik Stańczak 2019-06-19 13:16:45 UTC
Ah, that clears things up... I don't have konversation on my system but was able to impersonate Okular via

notify-send foo bar -h string:desktop-entry:org.kde.okular

Thanks for the explanation!