commit 66b9a19dc568d8f40df76e9382bb64f913a38563 parent 3f77e5f9773fb728e7c35d59f6f204482d19c6bc Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Fri, 20 Jan 2023 08:26:46 +0100 Fixed prompt to open unknown file type Diffstat:
M | open-file | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/open-file b/open-file @@ -68,7 +68,12 @@ openfile() { prog="java -jar" ;; *) - prog=$(dmenu_path | $menu -p "How to open $f ?") + if [ "$menu" = dmenu ]; then + menuprompt='-p "How to open $f? "' + else + menuprompt='--prompt="How to open $f? "' + fi + prog=$(dmenu_path | $menu "$menuprompt") ;; esac