Xerror(){ if test -x "$(which kdialog)" then kdialog --error $1 else zenity --error --text=$1 fi } Xinfo(){ if test -x "$(which kdialog)" then kdialog --title $1 --msgbox $2 else zenity --info --title=$1 --text=$2 fi }