: ########################################################################## # Title : isxwindows - return true if started unter X-Windows # Author : Heiner Steven # Date : 1995-07-11 # Requires : # Category : Desktop # SCCS-Id. : @(#) isxwindows 1.3 03/12/19 ########################################################################## # Description # ########################################################################## if [ -n "$DISPLAY" ] then if [ -n "$WINDOWID" ] then exit 0 else case "$TERM" in xterm*|sun-cmd) exit 0;; esac exit 1 fi else exit 1 fi