diff options
author | Peter Oliver <git@mavit.org.uk> | 2021-06-30 15:11:21 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-06-30 15:11:21 +0200 |
commit | cbf220bc31c0a00c45b22c140eda7854d81d991b (patch) | |
tree | c187d6e041a6c59836076c66c0a5796653a7b12a /etc/emacs-mail.desktop | |
parent | f355f32e69b1389f7d51b8a50c0a9c064dc2cb32 (diff) | |
download | emacs-cbf220bc31c0a00c45b22c140eda7854d81d991b.tar.gz emacs-cbf220bc31c0a00c45b22c140eda7854d81d991b.tar.bz2 emacs-cbf220bc31c0a00c45b22c140eda7854d81d991b.zip |
From .desktop files, reuse a frame or start a new Emacs as required
* doc/emacs/misc.texi: (Using Emacs as a Server) Explain
emacsclient.desktop.
* etc/NEWS: (Emacs Server): Explain emacsclient.desktop.
* emacs-mail.desktop, etc/emacsclient.desktop: Automatically try to
reuse an existing frame, open a new frame, or start a new Emacs
daemon. Add actions for specific behaviours (bug#49195).
Diffstat (limited to 'etc/emacs-mail.desktop')
-rw-r--r-- | etc/emacs-mail.desktop | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/etc/emacs-mail.desktop b/etc/emacs-mail.desktop index 0c5fab1dd12..251afa100cd 100644 --- a/etc/emacs-mail.desktop +++ b/etc/emacs-mail.desktop @@ -1,12 +1,22 @@ [Desktop Entry] Categories=Network;Email; Comment=GNU Emacs is an extensible, customizable text editor - and more -Exec=emacs -f message-mailto %u -# If you prefer to use emacsclient, use this instead -#Exec=emacsclient -e '(message-mailto "%u")' Icon=emacs Name=Emacs (Mail) MimeType=x-scheme-handler/mailto; NoDisplay=false Terminal=false Type=Application + +Exec=emacs -f message-mailto %u +# # If you prefer to use emacsclient, use this instead: +# Exec=sh -c 'emacsclient --alternate-editor= --display="$DISPLAY" --eval "(message-mailto \"%u\")"' +# 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 |