diff --git a/tdrop b/tdrop index 921dd02..56956ab 100755 --- a/tdrop +++ b/tdrop @@ -167,7 +167,7 @@ program=$1 # check that the program is not a path and does not contain flags if [[ ! $program =~ ^(current|auto_hide|auto_show|toggle_auto_hide)$ ]] && \ - ! type "$program" 2> /dev/null; then + ! type "$program" &> /dev/null; then echo >&2 "The program should be in PATH and not contain flags." | \ tee -a "$MUTDROP_PATH"/log exit 1 @@ -487,7 +487,7 @@ unmap() { # * General Helper Functions get_class_name() { - xprop -id "$1" WM_CLASS | awk '{gsub(/"/, ""); print $4}' + xprop -id "$1" WM_CLASS 2> /dev/null | awk '{gsub(/"/, ""); print $4}' } get_visibility() {