aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/emacsclient-mail.desktop6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/emacsclient-mail.desktop b/etc/emacsclient-mail.desktop
index 49c6f99f317..0a2420ddead 100644
--- a/etc/emacsclient-mail.desktop
+++ b/etc/emacsclient-mail.desktop
@@ -2,9 +2,9 @@
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
4# We want to pass the following commands to the shell wrapper: 4# We want to pass the following commands to the shell wrapper:
5# u=${1//\\/\\\\}; u=${u//\"/\\\"}; exec emacsclient --alternate-editor= --display="$DISPLAY" --eval "(message-mailto \"$u\")" 5# u=$(echo "$1" | sed 's/[\"]/\\&/g'); exec emacsclient --alternate-editor= --display="$DISPLAY" --eval "(message-mailto \"$u\")"
6# Special chars '"', '$', and '\' must be escaped as '\\"', '\\$', and '\\\\'. 6# Special chars '"', '$', and '\' must be escaped as '\\"', '\\$', and '\\\\'.
7Exec=bash -c "u=\\${1//\\\\\\\\/\\\\\\\\\\\\\\\\}; u=\\${u//\\\\\\"/\\\\\\\\\\\\\\"}; exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" bash %u 7Exec=sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u
8Icon=emacs 8Icon=emacs
9Name=Emacs (Mail, Client) 9Name=Emacs (Mail, Client)
10MimeType=x-scheme-handler/mailto; 10MimeType=x-scheme-handler/mailto;
@@ -16,7 +16,7 @@ Actions=new-window;new-instance;
16 16
17[Desktop Action new-window] 17[Desktop Action new-window]
18Name=New Window 18Name=New Window
19Exec=bash -c "u=\\${1//\\\\\\\\/\\\\\\\\\\\\\\\\}; u=\\${u//\\\\\\"/\\\\\\\\\\\\\\"}; exec emacsclient --alternate-editor= --create-frame --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" bash %u 19Exec=sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --create-frame --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u
20 20
21[Desktop Action new-instance] 21[Desktop Action new-instance]
22Name=New Instance 22Name=New Instance