From dc486d6710ae5ae4bccd913eeb75c67694c7da4e Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 23 Mar 2021 17:47:03 +0100 Subject: term-open: Support mailto links without recipient Signed-off-by: Florian Pritz --- term-open | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'term-open') diff --git a/term-open b/term-open index e61c7fc..d47367c 100755 --- a/term-open +++ b/term-open @@ -1,10 +1,16 @@ #!/bin/bash +logger "Running term-open with args: $*" + cmd=$1; shift term=termite if [[ $cmd = "mutt" ]]; then - exec termite -e "mutt -e 'set autoedit=yes' -- $*" + if [[ "$*" = 'mailto:?'* ]]; then + exec termite -e "mutt -- $*" + else + exec termite -e "mutt -e 'set autoedit=yes' -- $*" + fi fi exec termite -e "$cmd -- $*" -- cgit v1.2.3-24-g4f1b