diff options
author | Peter Oliver <git@mavit.org.uk> | 2021-06-09 12:44:32 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-07-02 13:09:08 +0200 |
commit | b1b05c828d67930bb3b897fe98e1992db42cf23c (patch) | |
tree | cf2a4680f85517f4a2912f8af144676f4a40baf8 /etc/emacsclient-mail.desktop | |
parent | 9eadcfdfe6f7b26ba44360db9f828fdbe7a78fe7 (diff) | |
download | emacs-b1b05c828d67930bb3b897fe98e1992db42cf23c.tar.gz |
Provide an emacsclient-mail.desktop
We provide both an emacs.desktop and an emacsclient.desktop, so for
consistency let’s do the same with mail.
* etc/emacs-mail.desktop: Extract suggestions for using emacsclient
from comments to create emacsclient-mail.desktop.
* etc/emacsclient-mail.desktop: Send mail using an existing Emacs
rather than starting a new one.
Diffstat (limited to 'etc/emacsclient-mail.desktop')
-rw-r--r-- | etc/emacsclient-mail.desktop | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/etc/emacsclient-mail.desktop b/etc/emacsclient-mail.desktop new file mode 100644 index 00000000000..4df79ed3002 --- /dev/null +++ b/etc/emacsclient-mail.desktop @@ -0,0 +1,19 @@ +[Desktop Entry] +Categories=Network;Email; +Comment=GNU Emacs is an extensible, customizable text editor - and more +Exec=sh -c 'exec emacsclient --alternate-editor= --display="$DISPLAY" --eval "(message-mailto \"%u\")"' +Icon=emacs +Name=Emacs (Mail, Client) +MimeType=x-scheme-handler/mailto; +NoDisplay=false +Terminal=false +Type=Application +Actions=new-window;new-instance; + +[Desktop Action new-window] +Name=New Window +Exec=emacsclient --alternate-editor= --create-frame --eval '(message-mailto "%u")' + +[Desktop Action new-instance] +Name=New Instance +Exec=emacs -f message-mailto %u |