From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.bugs Subject: bug#64310: 29.0.92; pure-GTK warning under Wayland Date: Sat, 01 Jul 2023 14:55:01 +0530 Message-ID: <877crk6l1u.fsf@codeisgreat.org> References: <87sfadwm1e.fsf@codeisgreat.org> <87leg477q0.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4783"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 64310@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 01 11:26:19 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 1qFWry-00011G-Nr for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Jul 2023 11:26:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFWrk-0000br-GO; Sat, 01 Jul 2023 05:26:04 -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 1qFWri-0000bS-JA for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2023 05:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qFWri-0000t7-An for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2023 05:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qFWrh-0006ut-Jy for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2023 05:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pankaj Jangid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Jul 2023 09:26: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.168820351626525 (code B ref 64310); Sat, 01 Jul 2023 09:26:01 +0000 Original-Received: (at 64310) by debbugs.gnu.org; 1 Jul 2023 09:25:16 +0000 Original-Received: from localhost ([127.0.0.1]:56573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFWqx-0006tk-Ju for submit@debbugs.gnu.org; Sat, 01 Jul 2023 05:25:15 -0400 Original-Received: from mail-pl1-f174.google.com ([209.85.214.174]:62783) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFWqt-0006tR-IJ for 64310@debbugs.gnu.org; Sat, 01 Jul 2023 05:25:14 -0400 Original-Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1b6824141b4so16349475ad.1 for <64310@debbugs.gnu.org>; Sat, 01 Jul 2023 02:25:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20221208.gappssmtp.com; s=20221208; t=1688203505; x=1690795505; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ayTNfEK81jMtBQA3LhIRrWMUjpBI9Fgpyt/PoMl3uYQ=; b=eoWs1WGB6DvMJLptLy1THupkRCYKASgxOtBAejb8A4KOyZ68jDjyLIeZRvmFt4KIxM 78aWtfTYTis4YO6ci3/fsmSiyvaqUcW7JxwNg0podSJWmGDmW4Z8JJWrdvf4PYFQhR98 CV71yn6nH2arvsQlWB6wEYEYMlJGqil1kwovPtFpGCd0Dr0job84IfGD0XrOSu0Gv+/x Pj4I0Xftti57UbMJz3XvSnBcl3gNVWj1HK4UVqbUQUcspbhFpw8pDyQinZ4BZzB1xU8F l8NKEwhoLwjHydUouqTtlbL+s80uFd/HoKTClJCS5QyXEZ9L/WvuJ7MXEe5aFEvFaMOz 1yGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688203505; x=1690795505; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ayTNfEK81jMtBQA3LhIRrWMUjpBI9Fgpyt/PoMl3uYQ=; b=bGdZyHlxFLUU0IqLH8e/9/IqwhQRj3dMdJg2MmTnmeUD25grDZw8ewQvXibrP/KXbt r9plqlqoTzVkcEvR6EBf/CzLULJNfg9IbC691sEDeOGlT8oLCiVQ0/FT2Le6SW1cxBet S9T3yDd7zNut4xBr4KjzydWFX1FfM2rI8Fmz4klzDgbUeG6lzasCDPa4Jatxe25Y7z14 QyTmmAHuEv8mrcPtImvoXHT6hjqM5it1eFuo/jEVQkvcTMMMwA3yIAbta1VvFRh+5j9N 3At+CAPEMvB41utoiQoBoLg9IuQk0VxwWuVTdixN7Ae1+FUmF1oUovDhOs/rcNs9nXzL nukg== X-Gm-Message-State: ABy/qLZIBpJMHi9icxfIDpoOGl0cwbiz1iGunqn2uXgfVggU6YYQEz4i 7dqkvmPaWqSaNz+wsaOUn4RCadrHpT0+BsHtU/k= X-Google-Smtp-Source: APBJJlHKwV4UJj+WHUVXVDZ93/N60Bq9pHBRnB5a/GAuEUwm0PDB7hCuRrJhshkAwA9FsQ/8vAYQSg== X-Received: by 2002:a17:903:1105:b0:1b0:3d03:4179 with SMTP id n5-20020a170903110500b001b03d034179mr7199293plh.6.1688203504911; Sat, 01 Jul 2023 02:25:04 -0700 (PDT) Original-Received: from anant ([49.36.237.194]) by smtp.gmail.com with ESMTPSA id o23-20020a170902779700b001b6740207d2sm6541048pll.215.2023.07.01.02.25.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jul 2023 02:25:04 -0700 (PDT) In-Reply-To: <87leg477q0.fsf@yahoo.com> (Po Lu's message of "Wed, 28 Jun 2023 08:26:15 +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:264377 Archived-At: Po Lu writes: > This dialog cannot be displayed if Emacs is using the GDK Wayland > backend. Perhaps the WAYLAND_DISPLAY environment variable was not set > when Emacs was started to handle the mailto URI. $WAYLAND_DISPLAY is reporting value "wayland-0" (without quotes). > How did you configure Emacs to handle such URIs? I configured it using Gnome Settings UI. There is section for "Default Applications". This lists three options for Mail - (1) Emacs (Mail, Client) (2) Emacs (Mail) and (3) Evolution. I selected the first option. Following are the relevant sections from ~/.config/mimeapps.list, --8<---------------cut here---------------start------------->8--- [Added Associations] x-scheme-handler/mailto=thunderbird.desktop;userapp-Thunderbird-9Y4UF1.desktop;emacs-mail.desktop;emacsclient-mail.desktop; [Default Applications] x-scheme-handler/mailto=emacsclient-mail.desktop --8<---------------cut here---------------end--------------->8--- And contents of ~/.local/share/emacs/29.0.92/etc/emacsclient-mail.desktop --8<---------------cut here---------------start------------->8--- [Desktop Entry] Categories=Network;Email; Comment=GNU Emacs is an extensible, customizable text editor - and more # We want to pass the following commands to the shell wrapper: # u=$(echo "$1" | sed 's/[\"]/\\&/g'); exec emacsclient --alternate-editor= --display="$DISPLAY" --eval "(message-mailto \"$u\")" # Special chars '"', '$', and '\' must be escaped as '\\"', '\\$', and '\\\\'. Exec=sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u Icon=emacs Name=Emacs (Mail, Client) MimeType=x-scheme-handler/mailto; NoDisplay=true Terminal=false Type=Application Keywords=emacsclient; Actions=new-window;new-instance; [Desktop Action new-window] Name=New Window Exec=sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --create-frame --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u [Desktop Action new-instance] Name=New Instance Exec=emacs -f message-mailto %u --8<---------------cut here---------------end--------------->8--- And ~/.local/share/emacs/29.0.92/etc/emacs-mail.desktop contains, --8<---------------cut here---------------start------------->8--- [Desktop Entry] Categories=Network;Email; Comment=GNU Emacs is an extensible, customizable text editor - and more Exec=emacs -f message-mailto %u Icon=emacs Name=Emacs (Mail) MimeType=x-scheme-handler/mailto; NoDisplay=true Terminal=false Type=Application --8<---------------cut here---------------end--------------->8---