# is X running on display 0 ? if [ -f /tmp/.X0-lock ]; then # X is running dialog=/opt/kde/bin/kdialog else dialog=/bin/dialog fi