-
Notifications
You must be signed in to change notification settings - Fork 71
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
Support transient notifications #102
Conversation
With this patch, if the user does `set -U __done_notification_transient 1`, these will disappear automatically on Linux systems.
@yajo I'm thinking transient notifications should be the default, no? |
https://gitlab.freedesktop.org/xdg/xdg-specs/-/blob/master/notification/notification-spec.xml#L780
Does this mean this would override a user's timeout/etc settings in their notification daemon config?
What notification daemons currently implement this? A quick test with and grep of Not sure about how other notification daemons are configured, but couldn't a user just set all notifications from |
I think so, I was just trying to do the least aggressive PR possible.
I think that means that the notification disappears. At least, that's what happens for me. Over time, opening the notifications panel and seeing it full of 1 notification for each command that lasted more than 5 seconds is annoying. These bury the important notifications, or force me to click on them to avoid that accumulation, while I just want to know the command finished, with nothing more.
On GNOME 3.38.4 this works. And some older GNOME versions too.
So we could make this not optional, and just pass the hint always, so if the notification manager understands it, the notification will disappear; and if it doesn't... well, it'll be the same as until today. Does that sound reasonable? |
+1 for making this the default. |
@yajo are you positive that the hint will be ingored by implementations which don't support it? Thanks! |
According to the spec:
To my understanding, it should break nothing. But I have to admit I didn't test this on any other implementations. |
So, anything else left to merge this? |
@yajo we would need a manual test at at least in another implementation |
So, could we merge? |
Hello, is there anything left here to merge? |
Hi @yajo sorry for the delay and thank you for pinging me on this. Let's merge! 🙏 |
|
@khaveesh any chance providing options which are not supported might result in an error? |
From
So, it shouldn't result in an error |
With this patch, if the user does
set -U __done_notification_transient 1
, these will disappear automatically on Linux systems.See https://gist.github.com/carsondarling/6217755 for details.