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.bugs Subject: bug#64310: 29.0.92; pure-GTK warning under Wayland Date: Sat, 22 Jul 2023 16:15:36 +0300 Message-ID: <83ilac84uf.fsf@gnu.org> References: <87sfadwm1e.fsf@codeisgreat.org> <87leg477q0.fsf@yahoo.com> <877crk6l1u.fsf@codeisgreat.org> <87cz1c3r22.fsf@yahoo.com> <87cz1c7ya3.fsf@codeisgreat.org> <83pm55ikcn.fsf@gnu.org> <87pm55l0ut.fsf@yahoo.com> <877cr4rwev.fsf@codeisgreat.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18639"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 64310@debbugs.gnu.org To: Pankaj Jangid Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 22 15:16:23 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qNCT9-0004g6-C7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jul 2023 15:16:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNCSp-0000QQ-Tn; Sat, 22 Jul 2023 09:16:03 -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 1qNCSo-0000QA-5F for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 09:16:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qNCSn-00050p-TP for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 09:16:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNCSn-0006GB-Ox for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 09:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jul 2023 13:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64310 X-GNU-PR-Package: emacs Original-Received: via spool by 64310-submit@debbugs.gnu.org id=B64310.169003170623988 (code B ref 64310); Sat, 22 Jul 2023 13:16:01 +0000 Original-Received: (at 64310) by debbugs.gnu.org; 22 Jul 2023 13:15:06 +0000 Original-Received: from localhost ([127.0.0.1]:35650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNCRu-0006Eq-25 for submit@debbugs.gnu.org; Sat, 22 Jul 2023 09:15:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNCRs-0006E3-Bh for 64310@debbugs.gnu.org; Sat, 22 Jul 2023 09:15:05 -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 1qNCRm-0004aW-TP; Sat, 22 Jul 2023 09:14:58 -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=T3dU9joyzWcD//UvZ+TXytELnGwGrPotg2zT8+xQqC4=; b=r9LfjE2p5rcg 8bg/YDrFrJQR1GuB6hWTybm7wrOFRsWEn5iRfSqCBYCxmccz34DMnHW+xSpq0/Bsbt0cRbWSW7Im9 mgMO4Rm3et9WCZhJrAm2eV55UXtRy8sO9Q3vGRZecyYFX7FWQICG+uPEWxSc//UInncE46YVdCCqh l5F5E0zzKtebVmJt8FoRlFB+vBLJuueFb8BaeWLZ0bSqsIXVdSig9AqdqQlwrP4AldKMWkK/coBMv 7FWm3pBKvLmyZZi5oQOAcyDnQn8/uFhze5LzR2MCJ3O55O7nnUj5tFP4XIzvRA+XpWGRIIIvtCmjg yWp5Pwdlc51TgRNduxxmfw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNCRm-0000q9-Cu; Sat, 22 Jul 2023 09:14:58 -0400 In-Reply-To: <877cr4rwev.fsf@codeisgreat.org> (message from Pankaj Jangid on Thu, 13 Jul 2023 15:00:16 +0530) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:265808 Archived-At: Ping! Can we make some progress in this issue? > From: Pankaj Jangid > Cc: Eli Zaretskii , 64310@debbugs.gnu.org > Date: Thu, 13 Jul 2023 15:00:16 +0530 > > Po Lu writes: > > >>> > Pankaj Jangid writes: > >>> > > >>> >> Exec=sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); > >>> >> exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" > >>> >> --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u > >>> > > >>> > I think this line here is the problem: it will make emacsclient try to > >>> > use the Xwayland display. What happens if you delete the `--display' > >>> > argument from this command line? Emacsclient should be smart enough to > >>> > figure out which display to use from the environment alone. > >>> > >>> Nope. I removed the "--display=..." argument from > >>> .local/share/emacs/29.0.92/etc/emacsclient-mail.desktop. It did not make > >>> any difference. > >>> > > > > Sorry, I must've missed that reply. Pankaj, what if you replace > > --display="$DISPLAY" with --display="$WAYLAND_DISPLAY"? > > > > Nothing changes. When there is no default email handler configured > i.e. when Firefox is set to ask each time. It shows two options for > Emacs - (1) Emacs(Mail, Client) (2) Emacs (Mail). When I select the > first one, it shows error that I reported. If I select option (2), Emacs > launches without any warning (desired behaviour). > >