From bad43ac17ebe31c1e497fdcc8735db5c008b5bcb Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 28 Aug 2017 09:30:19 +1000 Subject: [PATCH] scrot: Fix custom command not accepting arguments. --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 neofetch diff --git a/neofetch b/neofetch old mode 100755 new mode 100644 index 67ba0391..4b9acc7e --- a/neofetch +++ b/neofetch @@ -2857,8 +2857,8 @@ scrot_program() { # We first check to see if an X server is running before # falling back to OS specific screenshot tools. if [[ -n "$DISPLAY" ]]; then - if [[ "$scrot_cmd" != "auto" ]] && type -p "$scrot_cmd" >/dev/null; then - scrot_program=("$scrot_cmd") + if [[ "$scrot_cmd" != "auto" ]] && type -p "${scrot_cmd%% *}" >/dev/null; then + scrot_program=($scrot_cmd) elif type -p maim >/dev/null; then scrot_program=(maim)