From bfc61cd939e41bf598f883781c9a6f9eaa5f2119 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Thu, 13 Feb 2020 00:06:19 -0500 Subject: [PATCH] mutt: update mailcap for better attachment integrations 1. application/octet-stream -- open in Vim, plz 2. firefox... have to sleep for 1 on my work computer. Turns out there's a race condition between mutt deleting the attachment and firefox opening it: https://gitlab.com/muttmua/mutt/-/wikis/MuttFaq/Attachment 3. Images -- just use feh. Somehow xdg-open started opening in Gimp. Never again. --- mutt/mailcap | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mutt/mailcap b/mutt/mailcap index 26ff4ac..cab96f6 100644 --- a/mutt/mailcap +++ b/mutt/mailcap @@ -1,8 +1,9 @@ # Defaults (for GUI/X) text/plain; $EDITOR '%s'; -text/html; firefox '%s' &; test=test -n "$DISPLAY"; needsterminal; +application/octet-stream; $EDITOR '%s'; +text/html; firefox '%s' & sleep 1; test=test -n "$DISPLAY"; needsterminal; text/html; w3m -I %{charset} -T text/html; copiousoutput; -image/*; xdg-open '%s' &; test=test -n "$DISPLAY"; needsterminal; +image/*; feh '%s' ; test=test -n "$DISPLAY"; needsterminal; application/pdf; xdg-open '%s' &; test=test -n "$DISPLAY"; needsterminal; # Backups for Virtual Console (needs fbida package) -- libgit2 0.28.4