2
0

Xsession.ow2.src 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. XCOMM!KORNSHELL
  2. XCOMM $XConsortium: Xsession.ow2.src /main/3 1996/11/19 11:41:57 drk $
  3. XCOMM ####################################################################
  4. XCOMM ## File: Xsession.ow2
  5. XCOMM ##
  6. XCOMM ## Default Location: /usr/dt/config/Xsession.ow2
  7. XCOMM ##
  8. XCOMM ## Purpose: OpenWindows Desktop start script
  9. XCOMM ##
  10. XCOMM ## Invoked by: /usr/dt/bin/Xsession
  11. XCOMM ##
  12. XCOMM ## Revision: @(#)Xsession.ow2.src 1.3 95/02/16
  13. XCOMM ##
  14. XCOMM ## (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
  15. XCOMM ##
  16. XCOMM ####################################################################
  17. XCOMM First a little namespace cleanup of vars associated with this
  18. XCOMM (and /usr/dt/bin/Xsession.ow) scripts.
  19. unset SDT_ALT_SESSION
  20. unset SDT_ALT_HELLO
  21. unset SDT_NO_DSDM
  22. XCOMM
  23. XCOMM Find "xinitrc" file by standard precedence rules and start
  24. XCOMM the user's OpenWindows Desktop.
  25. XCOMM
  26. DEFAULT_XINITRC="/usr/openwin/lib/Xinitrc"
  27. HOME_XINITRC="$HOME/.xinitrc"
  28. if [ -z "$XINITRC" ]; then
  29. if [ -f $HOME_XINITRC ]; then
  30. XINITRC=$HOME_XINITRC
  31. else
  32. XINITRC=$DEFAULT_XINITRC
  33. fi
  34. fi
  35. echo "OpenWindows Desktop Login"
  36. if [ -f $XINITRC ]; then
  37. echo "using xinitrc file: $XINITRC"
  38. /bin/ksh $XINITRC
  39. else
  40. echo "xinitrc file: $XINITRC not found"
  41. if [ -f $DEFAULT_XINITRC ]; then
  42. echo "using xinitrc: $DEFAULT_XINITRC"
  43. /bin/ksh $DEFAULT_XINITRC
  44. fi
  45. fi