From 50f80e9e06d7a7c2d4fc405f2c6cb3622cd3148a Mon Sep 17 00:00:00 2001 From: Lucas Hoffmann Date: Sun, 30 Sep 2018 17:20:24 +0200 Subject: Use different desktop file for menus and mailto: links The handling of mailto links need not be presented in desktop menus and the entry in desktop menus on the other hand should not use the compose subcommand but the normal initial_command. Documentation of the Keys is at https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.0.html#recognized-keys --- MANIFEST.in | 1 + extra/alot-mailto.desktop | 10 ++++++++++ extra/alot.desktop | 3 +-- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 extra/alot-mailto.desktop diff --git a/MANIFEST.in b/MANIFEST.in index 0b5acb78..bf5144ee 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,6 @@ include COPYING include NEWS include extra/completion/alot-completion.zsh +include extra/alot-mailto.desktop include extra/alot.desktop include tests diff --git a/extra/alot-mailto.desktop b/extra/alot-mailto.desktop new file mode 100644 index 00000000..ca62c554 --- /dev/null +++ b/extra/alot-mailto.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=alot +Categories=Office;Email;ConsoleOnly; +GenericName=Email client +Comment=Terminal MUA using notmuch mail +Exec=alot compose %u +Terminal=true +Type=Application +MimeType=x-scheme-handler/mailto; +NoDisplay=true diff --git a/extra/alot.desktop b/extra/alot.desktop index b94e7b9c..b7c445a3 100644 --- a/extra/alot.desktop +++ b/extra/alot.desktop @@ -3,7 +3,6 @@ Name=alot Categories=Office;Email;ConsoleOnly; GenericName=Email client Comment=Terminal MUA using notmuch mail -Exec=alot compose %u +Exec=alot Terminal=true Type=Application -MimeType=x-scheme-handler/mailto; -- cgit v1.2.3