Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Very clear explanation! However, would you mind clarify something with respect to the Desktop Notifications Specification? There I read that "The server should implement the org.freedesktop.Notifications interface […]", from which I'd deduce that your DzenifyService is such a server. But at the same page, I read of org.freedesktop.Notifications.Notify that "Sends a notification to the notification server", so what's that? The notification server sends notifications to the notification server? Commented Feb 19, 2024 at 17:44
  • On the other hand, your DzenifyService uses dzen2 to actually show the popup visually, so I'd have called dzen2 the server. And your DzenifyService would be the client? Commented Feb 19, 2024 at 17:45
  • 1
    You could say that DzenifyService is simultaneously a server for the Notification API and a client for dzen2 (if it can even be called that, given that dzen2 doesn't actually run like a server process normally; it's typically a regular process/tool). But the latter half is not relevant to the example; what's relevant is that the Python script is a server for the Notification API and does something to make a pop-up show whenever it receives the Notify call, so you could also consider both processes as a single unit or even ignore dzen2 completely. Commented Feb 19, 2024 at 17:50
  • 1
    Oh, ok, so your DzenifyService is the notification server, and it's only delegating the graphical work to an existing program which is dzen2! But that's not different from it doing the work itself, as far as notification sever-client goes. Commented Feb 19, 2024 at 17:55
  • FYI, I've asked a question here about something strange I've noticed about notify-send and how it reports the IDs via the -p option. Commented Mar 15, 2024 at 22:32