New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
notifications from some applications don't obey timeout rules #276
Comments
Can confirm for both Discord Canary and the stable version of Discord. Neither
nor
appear to affect the approx. 3-second timeout used. Edit: I’m using Dunst 1.1.0 |
i think this happens whenever any notification-sending app requests a custom timeout for its notification. it works with this seems to be a feature supported by the libnotify protocol. this is probably not a bug then but a feature request. |
Oddly enough, when I use
|
As someone else stated before, the app can send a custom timeout, which overrides the timeout from the so But the timeout in a matching rule should override the timeout send by the app. |
Sorry for late response.
@knopwob Yeah, the different background colour is applied. |
For me, dunst git as of today lets the notification sit around for milliseconds rounded up to whole second(s) plus 1 second. As @knopwob lays it out. |
Can you still reproduce the issue on the current HEAD? It looks like it's working properly on my end. |
@tsipinakis The timeouts are still ignored on desktop notifications for Discord Canary 0.0.15 and Discord (Stable) 0.0.1. Dunst version is now I’m curious as to what your
|
I meant that overriding timeouts with rules seems to be working when I tested it with dunstify. Since I don't use discord I'll need your help in debugging this. Can you post the following pieces of information while on a3cce0e? (Feel free to snip out anything sensitive obviously):
|
For comparison, using
In case you’re wondering, Croissant is the account I used to send the Discord direct message. I’m accessing the Croissant account from Chromium, which shouldn’t and doesn’t trigger dunst’s notifications. I installed dunst via the AUR package. |
Looks like Discord is sending a |
It's a long shot but looking over the notification spec again, looks like the |
No difference, unfortunately.
Hmm… I’ll ask the Discord folks and see what they can do. |
I'm closing this since it's not a problem with dunst itself. It might be worth updating this to inform others experiencing this issue when you get a response from the Discord team(or a link to the relevant bug on the Discord bug tracker, if any). |
Although I do understand why some applications would send Therefore (though I understand this is not |
For those interested the following simple patch makes
|
Worth mentioning that #732 introduced the |
Hi guys, this seems a bit controversial, since I'm running into this issue and trying to understand why exactly dunst is unable to ignore some application timeouts. I'm not an expert on the notification spec, but, like other people around, I feel that your notification manager should be able to override the timeout given by applications when matched by its own rule. I managed to find the exact line of code that contradicts this logic in https://github.com/dunst-project/dunst/blob/v1.9.2/src/notification.c Scroll down to the last few lines of the if (n->dbus_timeout >= 0 && n->timeout <= 0)
n->timeout = n->dbus_timeout; That's it... this allows dunst to override the notification timeout it receives from dbus. That's an easy patch. I hope this helps anyone else that thinks the same way about notification timeouts. |
i have set my timeouts to 30 for all urgencies.
however, notifications from some applications, for example discord, disappear very quickly. approximately after just 3 seconds.
The text was updated successfully, but these errors were encountered: