#!/bin/bash

if [ -z $DISPLAY ]
then
	DIALOG=dialog
else
	DIALOG=Xdialog
fi

$DIALOG --msgbox "Are you in X Window or at the command line?" 8 50
