From: Eli Zaretskii <eliz@gnu.org>
To: Po Lu <luangruo@yahoo.com>
Cc: emacs-devel@gnu.org
Subject: Re: w32-notification-notify and HAVE_DBUS
Date: Fri, 25 Aug 2023 08:35:12 +0300 [thread overview]
Message-ID: <833507ptv3.fsf@gnu.org> (raw)
In-Reply-To: <87v8d43r29.fsf@yahoo.com> (message from Po Lu on Fri, 25 Aug 2023 08:26:38 +0800)
> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Fri, 25 Aug 2023 08:26:38 +0800
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > The notifications they support are different and look differently.
> > Compare notifications-notify in notifications.el with
> > w32-notification-notify. But some of the symbols in these two
> > notification mechanisms clash, see
> >
> > https://lists.gnu.org/archive/html/emacs-devel/2015-11/msg01265.html
>
> Wasn't that fixed by renaming QCdbus_notify to QCnotify?
>
> > In general, w32-notification-notify was designed and implemented as a
> > subset of notifications-notify, which requires D-Bus, so if D-Bus is
> > actually compiled in, the fallback is not needed.
>
> D-Bus, being a mechanism for desktop components to exchange information
> and procedure calls, provides no desktop notifications by itself, and a
> desktop notification server (normally supplied by an X desktop
> environment) must run on the session bus for them to be available.
Sorry, I don't understand the above. You seem to be saying that
notifications are unrelated to D-Bus? But doesn't
notifications-notify work by using D-Bus capabilities?
> MS-Windows builds with D-Bus are typically incapable of contacting a
> notification server, since none of the popular X desktop environments
> run on MS-Windows.
>
> So both features should be made available simultaneously.
From my POV, w32-notification-notify thingy is not important enough to
care about it. Newer Windows versions moved to a completely different
machinery for desktop notifications, which Emacs doesn't support (and
AFAICT cannot support, as using them requires C++). In all the years
since I wrote that code, I've heard no complaints and no evidence of
this feature being used by anyone. So I see no reason to risk
potential problems by removing the condition.
next prev parent reply other threads:[~2023-08-25 5:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <878ra062ua.fsf.ref@yahoo.com>
2023-08-24 12:29 ` w32-notification-notify and HAVE_DBUS Po Lu
2023-08-24 12:50 ` Eli Zaretskii
2023-08-24 13:01 ` Po Lu
2023-08-24 14:38 ` Eli Zaretskii
2023-08-25 0:26 ` Po Lu
2023-08-25 5:35 ` Eli Zaretskii [this message]
2023-08-25 6:35 ` Po Lu
2023-08-25 7:17 ` Eli Zaretskii
2023-08-25 7:28 ` Po Lu
2023-08-25 10:18 ` Eli Zaretskii
2023-08-25 11:44 ` Po Lu
2023-08-25 10:37 ` Michael Albinus
2023-08-25 11:43 ` Po Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=833507ptv3.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).