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: Wed, 26 Jul 2023 16:54:19 +0300 Message-ID: <83lef2ok1g.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> <83ilac84uf.fsf@gnu.org> <87edl02hi0.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25305"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64310@debbugs.gnu.org To: pankaj@codeisgreat.org, Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 26 19:57:18 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 1qOilB-0006ML-Dc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Jul 2023 19:57:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOiDR-0000p4-7F; Wed, 26 Jul 2023 13:22:25 -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 1qOexm-0007hy-5q for bug-gnu-emacs@gnu.org; Wed, 26 Jul 2023 09:54: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 1qOexl-0006tz-UG for bug-gnu-emacs@gnu.org; Wed, 26 Jul 2023 09:54:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qOexl-0000YP-Pt for bug-gnu-emacs@gnu.org; Wed, 26 Jul 2023 09:54: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: Wed, 26 Jul 2023 13:54: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.16903796322114 (code B ref 64310); Wed, 26 Jul 2023 13:54:01 +0000 Original-Received: (at 64310) by debbugs.gnu.org; 26 Jul 2023 13:53:52 +0000 Original-Received: from localhost ([127.0.0.1]:47759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOexb-0000Y1-JG for submit@debbugs.gnu.org; Wed, 26 Jul 2023 09:53:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOexZ-0000Xp-Uj for 64310@debbugs.gnu.org; Wed, 26 Jul 2023 09:53:50 -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 1qOexU-0006nh-Ci; Wed, 26 Jul 2023 09:53:44 -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=0Y83uIHkUqFBTNyYyQU3g7WPAqlafUK5naGNAr04mbk=; b=D6X0hg7a2sGd FvIZdWwkc1bKRCRuSQbqENLD6hHNIstSCoZD9/iGbaUjUk+vMhqlMo8xxVSz+tiilsJsMM6hmiH1o XfdUPySiHFbS2A8CnwYHVQ1QXwqsm/+RU8TDQm4mBKDP3kiaqT/Ah/Xn/D+/6FhMQMV8ujzXgyFAR vr7xdAXx9ZHNmITHrDh8wdzFT6Y7aU1TbX/Cwf+dzD18wuy3UbIMcmieBvMjHEf8EZ0eOxfl5OouC pid0GyAtUyt3w3Mjj4ty3dOy71XDB3YKYflXTeJEh4fVf9Qbgxie3axavXbx9zEuc/MkTQQt46J9K Ikl2XNlyKLAvYS/TJaYG+w==; 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 1qOexH-0007Id-MM; Wed, 26 Jul 2023 09:53:42 -0400 In-Reply-To: <87edl02hi0.fsf@yahoo.com> (message from Po Lu on Sat, 22 Jul 2023 21:38:47 +0800) 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:266120 Archived-At: Ping! Pankaj, can you please answer Po Lu's questions? > From: Po Lu > Cc: Pankaj Jangid , 64310@debbugs.gnu.org > Date: Sat, 22 Jul 2023 21:38:47 +0800 > > 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.