mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-30 09:00:31 -08:00
Apparently the emacsclient-mail.desktop file doesn't conform to the Desktop Entry Specification at https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables which says about the Exec key: | Field codes must not be used inside a quoted argument, the result of | field code expansion inside a quoted argument is undefined. However, the %u field code is used inside a quoted argument of the Exec key in both the [Desktop Entry] and [Desktop Action new-window] sections. * etc/emacsclient-mail.desktop (Exec): The Desktop Entry Specification does not allow field codes like %u inside a quoted argument. Work around it by passing %u as first parameter ($1) to the shell wrapper. * etc/emacsclient.desktop (Exec): Use `sh` rather than `placeholder` as the command name of the shell wrapper. (Bug#60204)
20 lines
665 B
Desktop File
20 lines
665 B
Desktop File
[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 \\\\\\"\\$1\\\\\\")\\"" sh %u
|
|
Icon=emacs
|
|
Name=Emacs (Mail, Client)
|
|
MimeType=x-scheme-handler/mailto;
|
|
NoDisplay=true
|
|
Terminal=false
|
|
Type=Application
|
|
Keywords=emacsclient;
|
|
Actions=new-window;new-instance;
|
|
|
|
[Desktop Action new-window]
|
|
Name=New Window
|
|
Exec=sh -c "exec emacsclient --alternate-editor= --create-frame --eval \\"(message-mailto \\\\\\"\\$1\\\\\\")\\"" sh %u
|
|
|
|
[Desktop Action new-instance]
|
|
Name=New Instance
|
|
Exec=emacs -f message-mailto %u
|