From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: w32-notification-notify and HAVE_DBUS Date: Fri, 25 Aug 2023 08:35:12 +0300 Message-ID: <833507ptv3.fsf@gnu.org> References: <878ra062ua.fsf.ref@yahoo.com> <878ra062ua.fsf@yahoo.com> <83o7iwppth.fsf@gnu.org> <87zg2g4ms0.fsf@yahoo.com> <83lee0pksl.fsf@gnu.org> <87v8d43r29.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5812"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 25 07:35:43 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qZPTy-0001FJ-CO for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Aug 2023 07:35:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZPT6-0004dc-Tp; Fri, 25 Aug 2023 01:34:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZPT5-0004dQ-Gu for emacs-devel@gnu.org; Fri, 25 Aug 2023 01:34:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZPT5-0000yt-8J; Fri, 25 Aug 2023 01:34:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=whyIflxwpQnZFHMixrOW3tLb3xYiLCqIivyBRhTup7A=; b=pcawh06XO6Tv fvn/YrLRE4MMei+eRrkjsvKOTtUwpKrfiZ2Sc6mabwr9nX6YK7K6h2Zzk9r56FCfSDVWbuE/dORyg EaIGz1Fk/lI99IDZfoG4DdN6oMR+FmZV+j6wLyPz4FSfNIvwK0mtXUNbWdhVQxy18MeVCFrrrC27Y RIhuEmwyp1ffszuEknaLMvF9yO8iF6g4/WvzEAwRUt63i2M1lE2DyCEuZW0cfx3KW6QPTDi3meeLS nHAl9H2isKJwK5too7YHrXxdC14UiceagwyKtI4JxOFHJ0Nj3Ivh/em2weUc2XhoMNnQBUZcQ///v waYn+afYr/xxijJ78yIZxg==; In-Reply-To: <87v8d43r29.fsf@yahoo.com> (message from Po Lu on Fri, 25 Aug 2023 08:26:38 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:309191 Archived-At: > From: Po Lu > Cc: emacs-devel@gnu.org > Date: Fri, 25 Aug 2023 08:26:38 +0800 > > Eli Zaretskii 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.