From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64310: 29.0.92; pure-GTK warning under Wayland Date: Sat, 22 Jul 2023 21:38:47 +0800 Message-ID: <87edl02hi0.fsf@yahoo.com> 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> <83ilac84uf.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19510"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 64310@debbugs.gnu.org, Pankaj Jangid To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 22 15:40:15 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 1qNCqF-0004r5-7U for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jul 2023 15:40:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNCq5-0005NH-Pn; Sat, 22 Jul 2023 09:40:05 -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 1qNCq3-0005Mu-RE for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 09:40:04 -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 1qNCq2-0007HP-IS for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 09:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNCq2-0006vx-Dp for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 09:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jul 2023 13:40:02 +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.169003314826519 (code B ref 64310); Sat, 22 Jul 2023 13:40:02 +0000 Original-Received: (at 64310) by debbugs.gnu.org; 22 Jul 2023 13:39:08 +0000 Original-Received: from localhost ([127.0.0.1]:35698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNCpA-0006te-3r for submit@debbugs.gnu.org; Sat, 22 Jul 2023 09:39:08 -0400 Original-Received: from sonic306-21.consmr.mail.ne1.yahoo.com ([66.163.189.83]:41124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNCp6-0006rk-Ke for 64310@debbugs.gnu.org; Sat, 22 Jul 2023 09:39:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1690033138; bh=FT2B5tWuTjww6Lo09epssgwffy8ZjsBySbn6QXl06Cs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=S1aAmVfiiiFrbaUiO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w2GI2ls23HkHrMXbs9PX.kQsllc.i1yLUuASDjVZ.XXoSAF.QSBrXND s_P3at.74Uk2yy5gIbSalMm3qWTlY4g1dS3eJFPZ1yfLDqzCOGzZ8jtypLbkR6ummHjnw6AvsSDu 8vPhiBlP3dQXDiAf7iwn0_saoh4ECEa4ARszsbFWw3itKa8oVsC9I0Tu.ogsfAflFmr.2WNKZl6X Jk_h1Q89Emk02pSsPMZ9nknoTeD4laXCcxjt6N4tL10xIY86A48KsvWgA8CAW__x8WYlDdtKLj4Z 3nFEYL.1xQqg1s0WomV9pIM9EqG13q7bKOdE_ly8ubwXh3CYEDrUaxPCKbDS1NoKBVFV9_Sd4btC ip9pPEqRMZREX1qG7Ayv6rk5uXT0FKJS05y2RC9NOE5oA205gnZ78pYBeeuTrk46vgFDrlsDLqCg RhQsHBtoQBSQgPr4c20YY8UaV8924wdn.F70uHuM21JNWwssVR0miTL..R7LobPbhZNLSJ0IMlNc SrAUGKIMkaXK3wb1P82FEfg3aXRLz_gC54HrUp_jpYle_rEabLTI7Y5O7dMMYyIGAJJBArS9b3N. tm9wfXdG8Nk0AS._dVUiHWC0DwiRCKFXwf5Li_oWzT X-Sonic-MF: X-Sonic-ID: 4b30fc55-1241-40bb-9d0e-4a9aaa3ffc61 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Sat, 22 Jul 2023 13:38:58 +0000 Original-Received: by hermes--production-sg3-9dc5f54fc-v44rr (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 335248aad3d535ce164aca48333052d2; Sat, 22 Jul 2023 13:38:52 +0000 (UTC) In-Reply-To: <83ilac84uf.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 22 Jul 2023 16:15:36 +0300") X-Mailer: WebService/1.1.21647 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:265813 Archived-At: Eli Zaretskii writes: > 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). >> >> I tried to reproduce this myself a few weeks ago, but I guess the line eater ate my reply. Unfortunately, the desktop file works as expected. Are you sure the emacsclient you've installed corresponds to a PGTK build of Emacs? If it's part of an Emacs installation built with another window system, PGTK-specific code within won't be present, demonstrating symptoms similar to what you are experiencing.