Finally fixed my mailto handler

This commit is contained in:
Lucien Cartier-Tilet 2020-04-21 13:05:14 +02:00
parent d7ad8de30a
commit a438e762ec
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
3 changed files with 15 additions and 2 deletions

View File

@ -70,7 +70,7 @@ x-scheme-handler/magnet=qBittorrent.desktop
audio/mpeg=mpv.desktop audio/mpeg=mpv.desktop
audio/x-wav=mpv.desktop audio/x-wav=mpv.desktop
application/lrf=com.github.babluboy.bookworm.desktop application/lrf=com.github.babluboy.bookworm.desktop
x-scheme-handler/mailto=gnus.desktop x-scheme-handler/mailto=mu4e.desktop
application/octet-stream=emacs.desktop application/octet-stream=emacs.desktop
message/rfc822=gnus.desktop message/rfc822=gnus.desktop
audio/x-mod=mpv.desktop audio/x-mod=mpv.desktop

View File

@ -3,7 +3,7 @@ Name=Mu4e
GenericName=Mu4e GenericName=Mu4e
Comment=Maildir Utils for Emacs Comment=Maildir Utils for Emacs
MimeType=x-scheme-handler/mailto; MimeType=x-scheme-handler/mailto;
Exec=emacs --eval "(mu4e)" %F Exec=/home/phundrak/.local/bin/emacsmail %U
Icon=emacs Icon=emacs
Type=Application Type=Application
Terminal=false Terminal=false

View File

@ -21,6 +21,7 @@
- [[#cnew][Cnew]] - [[#cnew][Cnew]]
- [[#dart-language-server][Dart Language Server]] - [[#dart-language-server][Dart Language Server]]
- [[#dmenu][Dmenu]] - [[#dmenu][Dmenu]]
- [[#emacsmail][Emacsmail]]
- [[#emoji-picker][Emoji picker]] - [[#emoji-picker][Emoji picker]]
- [[#lock][Lock]] - [[#lock][Lock]]
- [[#mp42webm][mp42webm]] - [[#mp42webm][mp42webm]]
@ -327,6 +328,18 @@
rofi -dmenu $argv rofi -dmenu $argv
#+END_SRC #+END_SRC
* Emacsmail
:PROPERTIES:
:HEADER-ARGS: :tangle ~/.local/bin/emacsmail
:CUSTOM_ID: h-38a20359-28fb-412d-bf83-e2202d04f75f
:END:
This short script is used in my =~/.local/share/applications/mu4e.desktop=
file in order to send to Emacs any ~mailto:~ requests made in my system.
#+BEGIN_SRC bash
#!/bin/bash
emacsclient -c --eval "(browse-url-mail \"$@\")"
#+END_SRC
* Emoji picker * Emoji picker
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: h-477cd486-c9a6-4d59-bd9d-62d8f08ee62d :CUSTOM_ID: h-477cd486-c9a6-4d59-bd9d-62d8f08ee62d