#!/bin/sh

for terminal in urxvt gnome-terminal xterm ; do
    terminal=$(which $terminal 2>/dev/null) 
    [ -x $terminal ] && exec $terminal
done

error="no terminal found"
echo $error
zenity --error --text=$error
xmessage $error
