<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>On Mon, 12 Oct 2020, at 15:48, Andrew Smith wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="ltr"><div>Would like to learn how notifications actually work.<br></div></div></blockquote><div><br></div><div>Assuming you mean desktop notifications - the little bubbles that appear to tell you about things like new updates or chat messages - I know a bit about this.<br></div><div><br></div><div>All* modern desktop Linux systems have D-Bus, a messaging system to let local applications communicate. Desktop notifications are one of the most visible things using this. Your desktop environment (Gnome/KDE/etc.) registers itself on D-Bus as the notification server when it starts. Applications send it messages with the details of a notification to show (e.g. text and an optional icon), and it's up to the desktop how to display it. There's a specification for this:<br></div><div><br></div><div><a href="https://specifications.freedesktop.org/notification-spec/notification-spec-latest.html">https://specifications.freedesktop.org/notification-spec/notification-spec-latest.html</a><br></div><div><br></div><div>Of course, some applications ignore this and display their own notifications directly, e.g. making a new window with no title bar. This tends to look a bit out of place. E.g. Thunderbird did this for a long time; I don't know if it's changed now.<br></div><div><br></div><div>(* Probably not actually <i>all</i>, because there are so many ways to set up desktop Linux. But if you're running any mainstream distro from the last 10 years or so, you've almost certainly got D-Bus.)<br></div><div><br></div><div>Thomas<br></div></body></html>