From: Pankaj Jangid <pankaj@codeisgreat.org>
To: Po Lu <luangruo@yahoo.com>
Cc: 64310@debbugs.gnu.org
Subject: bug#64310: 29.0.92; pure-GTK warning under Wayland
Date: Sat, 01 Jul 2023 14:55:01 +0530 [thread overview]
Message-ID: <877crk6l1u.fsf@codeisgreat.org> (raw)
In-Reply-To: <87leg477q0.fsf@yahoo.com> (Po Lu's message of "Wed, 28 Jun 2023 08:26:15 +0800")
Po Lu <luangruo@yahoo.com> 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---
next prev parent reply other threads:[~2023-07-01 9:25 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-27 4:45 bug#64310: 29.0.92; pure-GTK warning under Wayland Pankaj Jangid
2023-06-28 0:26 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-01 8:41 ` Eli Zaretskii
2023-07-01 9:25 ` Pankaj Jangid [this message]
2023-07-01 9:43 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-01 9:53 ` Pankaj Jangid
2023-07-06 7:12 ` Eli Zaretskii
2023-07-06 11:45 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-13 9:30 ` Pankaj Jangid
2023-07-22 13:15 ` Eli Zaretskii
2023-07-22 13:38 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-26 13:54 ` Eli Zaretskii
2023-07-27 5:18 ` Pankaj Jangid
2023-08-03 8:01 ` Eli Zaretskii
2023-08-12 6:47 ` Eli Zaretskii
2023-08-12 7:06 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-12 8:16 ` Eli Zaretskii
2023-08-12 8:56 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-17 16:51 ` Pankaj Jangid
2023-08-24 6:16 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877crk6l1u.fsf@codeisgreat.org \
--to=pankaj@codeisgreat.org \
--cc=64310@debbugs.gnu.org \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).