diff options
author | Lucas Hoffmann <lucc@posteo.de> | 2018-09-30 17:20:24 +0200 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2018-09-30 19:20:46 +0100 |
commit | 50f80e9e06d7a7c2d4fc405f2c6cb3622cd3148a (patch) | |
tree | d96b6d614c9b9c32601cf20190cc6babeecdbdd0 | |
parent | 5b00a4ecd30d21ceeebb16eefbed4c48cfe3ba4a (diff) |
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
-rw-r--r-- | MANIFEST.in | 1 | ||||
-rw-r--r-- | extra/alot-mailto.desktop | 10 | ||||
-rw-r--r-- | extra/alot.desktop | 3 |
3 files changed, 12 insertions, 2 deletions
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; |