commit: c252ad2ed7d1545e4c4d8b10c91ac77f0c03d54e Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Thu Jan 22 18:16:53 2026 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Thu Jan 22 18:16:53 2026 +0000 URL: https://gitweb.gentoo.org/proj/emacs-tools.git/commit/?id=c252ad2e
New desktop files for mailto URIs * emacs-mail.desktop: * emacsclient-mail.desktop: New desktop files for mailto URIs. Copied from x11-misc/emacs-desktop-mail-1.2. * Makefile (DESKTOPFILES): Add them. Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> ChangeLog | 7 +++++++ Makefile | 5 +++-- emacs-mail.desktop | 7 +++++++ emacsclient-mail.desktop | 7 +++++++ 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 722b4a6..5a5f236 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2026-01-22 Ulrich Müller <[email protected]> + + * emacs-mail.desktop: + * emacsclient-mail.desktop: New desktop files for mailto URIs. + Copied from x11-misc/emacs-desktop-mail-1.2. + * Makefile (DESKTOPFILES): Add them. + 2025-12-02 Ulrich Müller <[email protected]> * emacs.initd (EMACS_START, EMACS_SIGNAL_TIMEOUT): Don't assign diff --git a/Makefile b/Makefile index 8a68130..89d9ca3 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# Copyright 2007-2025 Gentoo Authors +# Copyright 2007-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 or later PN = emacs-common @@ -6,7 +6,8 @@ PV = $(shell sed '/^[ \t]*\* [Vv]ersion/!d;s/[^0-9.]*\([^ \t]*\).*/\1/;q' \ ChangeLog) P = $(PN)-$(PV) -DESKTOPFILES = emacs.desktop emacsclient.desktop +DESKTOPFILES = emacs.desktop emacsclient.desktop \ + emacs-mail.desktop emacsclient-mail.desktop ICONFILES = sink.png \ emacs22_16.png emacs22_24.png emacs22_32.png emacs22_48.png \ emacs23_16.png emacs23_24.png emacs23_32.png emacs23_48.png \ diff --git a/emacs-mail.desktop b/emacs-mail.desktop new file mode 100644 index 0000000..402d873 --- /dev/null +++ b/emacs-mail.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Name=GNU Emacs (mail) +NoDisplay=true +Exec=/usr/bin/emacs -f message-mailto %u +Terminal=false +MimeType=x-scheme-handler/mailto; diff --git a/emacsclient-mail.desktop b/emacsclient-mail.desktop new file mode 100644 index 0000000..602d83b --- /dev/null +++ b/emacsclient-mail.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Name=Emacsclient (mail) +NoDisplay=true +Exec=/bin/bash -c "u=\\${1//\\\\\\\\/\\\\\\\\\\\\\\\\}; u=\\${u//\\\\\\"/\\\\\\\\\\\\\\"}; exec /usr/bin/emacsclient --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" bash %u +Terminal=false +MimeType=x-scheme-handler/mailto;
