Bug 408901 - notify-send notifications have no Configure option
Summary: notify-send notifications have no Configure option
Status: RESOLVED NOT A BUG
Alias: None
Product: frameworks-knotifications
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.59.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-19 09:32 UTC by Dominik Stańczak
Modified: 2019-06-19 13:16 UTC (History)
4 users (show)

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


Attachments
Screenshot of missing Configure button (58.65 KB, image/png)
2019-06-19 09:32 UTC, Dominik Stańczak
Details

Note You need to log in before you can comment on or make changes to this bug.
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!