-
Notifications
You must be signed in to change notification settings - Fork 157
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
New notification design #183
Comments
I really like and support this approach over hacks like #182. But is earlyoom really the first to implement a |
That is really a good question. earlyoom is for sure not the first project to have this use case. But I could not find a single good existing solution. |
Notification daemon is done: https://github.com/rfjakob/systembus-notify |
Great! :) I also filed an issue upstream: https://gitlab.gnome.org/GNOME/libnotify/-/issues/9 |
Can we use it right now with earlyoom? How to use it? Please update doc. |
Gets rid of sudo hacks and system() calls. #183
Merged as 17b3d5e , yes please test! Just run
and at the same time run an instance of https://github.com/rfjakob/systembus-notify . |
No notification provided. |
|
Works well on Xubuntu 19.10:
|
In other words, it does not work at all? |
It works at all.
-- it happens under heavy swapping, it is OK. |
I see, ok |
Thanks for the feedback. v1.6 has been released with the new notifications. |
earlyoom will send a dbus message to the system bus, and there will be tiny notification daemon running as the user that listens for those messages and shows a notification.
earlyoom side is easy, it will just exec something like this:
The notification daemon still needs to be written. Proof of concept that the signal can be received:
Same idea in Python (german only): https://wiki.debianforum.de/Desktop-Notification_von_Systemservice_mittels_dbus
The text was updated successfully, but these errors were encountered: