[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: erc-burnt-toast - Provide Windows Notification Center to erc with bu
Re: erc-burnt-toast - Provide Windows Notification Center to erc with burnt-toast and erc-match
Wed, 04 Mar 2020 17:38:26 +0200
> From: Michael Albinus <address@hidden>
> Date: Wed, 04 Mar 2020 11:13:26 +0100
> Cc: address@hidden, Emacs developers <address@hidden>
> And there's also another problem. D-Bus is just infrastructure,
> providing interprocess communication means. On GNU/Linux, we use D-Bus
> to speak with the service "org.freedesktop.Notifications", which offers
> the API for desktop notifications. I haven't heard of a similar D-Bus
> service implementation for MS Windows.
> > Would it make sense to create am elisp package that installs advice on
> > the functions that (for most users) invoke DBUS? It seems like,
> > especially, this could be the easiest way to get windows notification
> > center support into core quickly.
> I would oppose such an approach. We shouldn't fake D-Bus on MS Windows,
> when it isn't D-Bus.
> Instead of, we might try to implement the notifications.el interface
> with other means but D-Bus on MS Windows.
> But even this wouldn't be necessary, if we have alert.el as general
> notification interface for Emacs. We could add just another package
> which implements windows notification center, and integrate it into
> alert.el like the other existing alert styles.
> For MS Windows specific implementation options, I cannot speak seriously
> about. However, ...
> > This would look rather like the DBUS wrapper in C for GNU/Linus, Mac,
> > and Cygwin but wrapping (probably) the Windows Community Toolkit.
> > This would definitely allow us to properly associate Emacs as the
> > originating process and probably opens the door to let users
> > create/manage GUIDs on the fly, which can to differentiate toasts as
> > from different logical processes within Emacs and/or different users
> > of Emacs.
> ... this doesn't sound bad in my ears.
Guys, you _are_ aware that Emacs has w32-notification-notify since
v25.1? It only supports a small subset of what is possible with
D-Bus, but maybe that's enough for your needs in this thread?