Commit bad43ac1 authored by Dylan Araps's avatar Dylan Araps

scrot: Fix custom command not accepting arguments.

parent 0a1037f1
...@@ -2857,8 +2857,8 @@ scrot_program() { ...@@ -2857,8 +2857,8 @@ scrot_program() {
# We first check to see if an X server is running before # We first check to see if an X server is running before
# falling back to OS specific screenshot tools. # falling back to OS specific screenshot tools.
if [[ -n "$DISPLAY" ]]; then if [[ -n "$DISPLAY" ]]; then
if [[ "$scrot_cmd" != "auto" ]] && type -p "$scrot_cmd" >/dev/null; then if [[ "$scrot_cmd" != "auto" ]] && type -p "${scrot_cmd%% *}" >/dev/null; then
scrot_program=("$scrot_cmd") scrot_program=($scrot_cmd)
elif type -p maim >/dev/null; then elif type -p maim >/dev/null; then
scrot_program=(maim) scrot_program=(maim)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment