Fix support for xfce4-terminal

Addresses #20.
break
noctuid 9 years ago
parent 2aed1021c5
commit 9bc0deade7

@ -501,8 +501,8 @@ create_win_return_wid() {
# need to redirect stdout or function won't return # need to redirect stdout or function won't return
program_command="$1 > /dev/null &" program_command="$1 > /dev/null &"
# for programs where $! won't give the correct pid # for programs where $! won't give the correct pid
if [[ $program == terminix ]] && pgrep terminix; then if [[ $program =~ ^(terminix|xfce4-terminal)$ ]] \
pid=$(pgrep terminix) && pid=$(pgrep -x "$program"); then
eval "$program_command" eval "$program_command"
elif [[ $program == urxvtc ]]; then elif [[ $program == urxvtc ]]; then
blacklist=$(xdotool search --classname urxvtd) blacklist=$(xdotool search --classname urxvtd)

Loading…
Cancel
Save