From a24515630bb569ef857f54ea3a28768bccdad356 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 26 Mar 2019 13:02:16 +0100 Subject: [PATCH] exec viewer --- .bin/task_call | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.bin/task_call b/.bin/task_call index eda77d0..efc9149 100755 --- a/.bin/task_call +++ b/.bin/task_call @@ -15,7 +15,7 @@ DATAPAYL="${DATA#*:}" case "$DATATYPE" in ('') echo >&2 I: No link data available for this task. - task "$TSK" + exec task "$TSK" ;; (msgid) @@ -23,20 +23,20 @@ case "$DATATYPE" in ;; (url) - sensible-browser "$DATAPAYL" + exec sensible-browser "$DATAPAYL" ;; (file) if eval test -f "$DATAPAYL"; then case "$(file --mime-type "$DATAPAYL")" in - (*": text/"*) eval sensible-editor "$DATAPAYL";; - (*) eval run-mailcap --action=edit "$DATAPAYL";; + (*": text/"*) eval exec sensible-editor "$DATAPAYL";; + (*) eval exec run-mailcap --action=view "$DATAPAYL";; esac fi ;; (*) - eval run-mailcap --action=edit "$DATAPAYL" + eval exec run-mailcap --action=view "$DATAPAYL" ;; esac -- 2.39.5