From 9bc0deade77e734429f0b3fba6f7363d9b687783 Mon Sep 17 00:00:00 2001 From: noctuid Date: Mon, 4 Jul 2016 14:14:10 -0400 Subject: [PATCH] Fix support for xfce4-terminal Addresses #20. --- tdrop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tdrop b/tdrop index 54d1875..e19ce22 100755 --- a/tdrop +++ b/tdrop @@ -501,8 +501,8 @@ create_win_return_wid() { # need to redirect stdout or function won't return program_command="$1 > /dev/null &" # for programs where $! won't give the correct pid - if [[ $program == terminix ]] && pgrep terminix; then - pid=$(pgrep terminix) + if [[ $program =~ ^(terminix|xfce4-terminal)$ ]] \ + && pid=$(pgrep -x "$program"); then eval "$program_command" elif [[ $program == urxvtc ]]; then blacklist=$(xdotool search --classname urxvtd)