Xfailsafe.src 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. XCOMM!/bin/sh
  2. XCOMM #####################################################################
  3. XCOMM
  4. XCOMM Xfailsafe
  5. XCOMM
  6. XCOMM Common Desktop Environment
  7. XCOMM
  8. XCOMM Configuration file for the Login Manager
  9. XCOMM
  10. XCOMM (c) Copyright 1993, 1994 Hewlett-Packard Company
  11. XCOMM (c) Copyright 1993, 1994 International Business Machines Corp.
  12. XCOMM (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  13. XCOMM (c) Copyright 1993, 1994 Novell, Inc.
  14. XCOMM
  15. XCOMM ************** DO NOT EDIT THIS FILE **************
  16. XCOMM
  17. XCOMM CDE_INSTALLATION_TOP/config/Xfailsafe is a factory-default file and will
  18. XCOMM be unconditionally overwritten upon subsequent installation.
  19. XCOMM Before making changes to the file, copy it to the configuration
  20. XCOMM directory, CDE_CONFIGURATION_TOP/config. You must also update the
  21. XCOMM failsafeClient resource in CDE_CONFIGURATION_TOP/config/Xconfig.
  22. XCOMM
  23. XCOMM $XConsortium: Xfailsafe.src /main/5 1996/07/02 11:39:20 mgreess $
  24. XCOMM #####################################################################
  25. XCOMM
  26. XCOMM
  27. XCOMM This file contains commands to invoke a simple session for repairs of
  28. XCOMM a dysfunctional environment.
  29. XCOMM
  30. XCOMM All clients should be run in the background with the exception of the
  31. XCOMM last client. When the last client is terminated by the user, the session
  32. XCOMM will be terminated and the login screen will be presented.
  33. XCOMM
  34. #ifdef sun
  35. XCOMM This simple session consists of a single terminal emulator.
  36. #else
  37. XCOMM This simple session consists of a window manager and a single terminal
  38. XCOMM emulator.
  39. #endif
  40. #ifdef sun
  41. XDIR=/usr/openwin/bin
  42. $XDIR/xterm -C -ls
  43. #else
  44. XCOMM
  45. XCOMM Global variables
  46. XCOMM
  47. XDIR=/usr/bin/X11
  48. DELAY=2
  49. XCOMM
  50. XCOMM Set background to default weave.
  51. XCOMM
  52. #if defined(__linux__)
  53. XDIR=/usr/bin
  54. #endif
  55. #if defined(__FreeBSD__)
  56. XDIR=/usr/local/bin
  57. #elif defined(__OpenBSD__)
  58. XDIR=/usr/X11R6/bin
  59. #elif defined(__NetBSD__)
  60. XDIR=/usr/X11R7/bin
  61. #endif
  62. $XDIR/xsetroot -default &
  63. #if defined(_AIX) && defined(AIXV4)
  64. XCOMM
  65. XCOMM Clear the LFT message locale override if set
  66. XCOMM
  67. if [ "$LC_MESSAGES" = "C@lft" ]
  68. then
  69. unset LC_MESSAGES
  70. fi
  71. #endif
  72. XCOMM
  73. XCOMM Start a window manager.
  74. XCOMM
  75. $XDIR/mwm &
  76. sleep $DELAY
  77. #if defined(_AIX) && defined(AIXV4)
  78. XCOMM
  79. XCOMM Setup xmodmap
  80. XCOMM
  81. if [ -x CDE_INSTALLATION_TOP/config/Xsession.d/0050.dtxmodmap ]
  82. then
  83. CDE_INSTALLATION_TOP/config/Xsession.d/0050.dtxmodmap
  84. fi
  85. #endif
  86. XCOMM
  87. XCOMM Start the terminal emulator (also the session terminator client).
  88. XCOMM
  89. #if defined (_AIX)
  90. $XDIR/aixterm -ls
  91. #else
  92. $XDIR/xterm -ls
  93. #endif
  94. #endif