dmenu_recency: terminal_hold mode wait user input only if exit status success
I don't know if you think this is a bug or not, but it's strange not to let the user read the error message. Not all programs are silent on error, especially since it is not always an error, in principle.
This сan you patch this diff?
diff --git a/dmenu_recency b/dmenu_recency
index aff7455..3e29551 100755
--- a/dmenu_recency
+++ b/dmenu_recency
@@ -97,4 +97,4 @@ fi
[[ "$type" = "background" ]] && exec $cmd
[[ "$type" = "terminal" ]] && exec $TERMINAL_CMD "$cmd"
[[ "$type" = "terminal_hold" ]] &&
- exec $TERMINAL_CMD sh -c "$cmd && echo Press Enter to kill me... && read line"
+ exec $TERMINAL_CMD sh -c "$cmd ; echo Press Enter to kill me... ; read line"
With these changes, dmenu_recency
will wait for user input in terminal_hold mode under any circumstances (unless the exit
command is called, but this cannot be, really? ;D
).