aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Oliver2021-06-09 12:44:32 +0100
committerLars Ingebrigtsen2021-07-02 13:09:08 +0200
commitb1b05c828d67930bb3b897fe98e1992db42cf23c (patch)
treecf2a4680f85517f4a2912f8af144676f4a40baf8
parent9eadcfdfe6f7b26ba44360db9f828fdbe7a78fe7 (diff)
downloademacs-b1b05c828d67930bb3b897fe98e1992db42cf23c.tar.gz
emacs-b1b05c828d67930bb3b897fe98e1992db42cf23c.zip
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.
-rw-r--r--etc/NEWS1
-rw-r--r--etc/emacs-mail.desktop14
-rw-r--r--etc/emacsclient-mail.desktop19
3 files changed, 21 insertions, 13 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 5b04278e3aa..1a3130826a5 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1077,6 +1077,7 @@ Clicking on a 'mailto:' link in other applications will then open
1077Emacs with headers filled out according to the link, e.g. 1077Emacs with headers filled out according to the link, e.g.
1078"mailto:larsi@gnus.org?subject=This+is+a+test". If you prefer 1078"mailto:larsi@gnus.org?subject=This+is+a+test". If you prefer
1079emacsclient, use "emacsclient -e '(message-mailto "%u")'" 1079emacsclient, use "emacsclient -e '(message-mailto "%u")'"
1080or "emacsclient-mail.desktop".
1080 1081
1081--- 1082---
1082*** Change to default value of 'message-draft-headers' user option. 1083*** Change to default value of 'message-draft-headers' user option.
diff --git a/etc/emacs-mail.desktop b/etc/emacs-mail.desktop
index 251afa100cd..3a96b9ec8c7 100644
--- a/etc/emacs-mail.desktop
+++ b/etc/emacs-mail.desktop
@@ -1,22 +1,10 @@
1[Desktop Entry] 1[Desktop Entry]
2Categories=Network;Email; 2Categories=Network;Email;
3Comment=GNU Emacs is an extensible, customizable text editor - and more 3Comment=GNU Emacs is an extensible, customizable text editor - and more
4Exec=emacs -f message-mailto %u
4Icon=emacs 5Icon=emacs
5Name=Emacs (Mail) 6Name=Emacs (Mail)
6MimeType=x-scheme-handler/mailto; 7MimeType=x-scheme-handler/mailto;
7NoDisplay=false 8NoDisplay=false
8Terminal=false 9Terminal=false
9Type=Application 10Type=Application
10
11Exec=emacs -f message-mailto %u
12# # If you prefer to use emacsclient, use this instead:
13# Exec=sh -c 'emacsclient --alternate-editor= --display="$DISPLAY" --eval "(message-mailto \"%u\")"'
14# Actions=new-window;new-instance;
15
16# [Desktop Action new-window]
17# Name=New Window
18# Exec=emacsclient --alternate-editor= --create-frame --eval '(message-mailto "%u")'
19
20# [Desktop Action new-instance]
21# Name=New Instance
22# Exec=emacs -f message-mailto %u
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 @@
1[Desktop Entry]
2Categories=Network;Email;
3Comment=GNU Emacs is an extensible, customizable text editor - and more
4Exec=sh -c 'exec emacsclient --alternate-editor= --display="$DISPLAY" --eval "(message-mailto \"%u\")"'
5Icon=emacs
6Name=Emacs (Mail, Client)
7MimeType=x-scheme-handler/mailto;
8NoDisplay=false
9Terminal=false
10Type=Application
11Actions=new-window;new-instance;
12
13[Desktop Action new-window]
14Name=New Window
15Exec=emacsclient --alternate-editor= --create-frame --eval '(message-mailto "%u")'
16
17[Desktop Action new-instance]
18Name=New Instance
19Exec=emacs -f message-mailto %u