NetBSD port
[oweals/cde.git] / cde / programs / dtlogin / config / Xfailsafe.src
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
41 #ifdef sun
42    XDIR=/usr/openwin/bin
43
44    $XDIR/xterm -C -ls
45 #else
46
47
48 XCOMM
49 XCOMM  Global variables
50 XCOMM
51    XDIR=/usr/bin/X11
52    DELAY=2
53    
54 XCOMM
55 XCOMM  Set background to default weave.
56 XCOMM
57 #if defined(linux)
58    XDIR=/usr/bin
59 #endif
60 #if defined(__FreeBSD__)
61    XDIR=/usr/local/bin
62 #elif defined(__OpenBSD__)
63    XDIR=/usr/X11R6/bin
64 #elif defined(__NetBSD__)
65    XDIR=/usr/X11R7/bin
66 #endif
67
68 $XDIR/xsetroot -default &
69
70 #if defined(_AIX) && defined(AIXV4)
71 XCOMM
72 XCOMM  Clear the LFT message locale override if set
73 XCOMM
74 if [ "$LC_MESSAGES" = "C@lft" ]
75 then
76   unset LC_MESSAGES
77 fi
78 #endif
79
80 XCOMM
81 XCOMM  Start a window manager.
82 XCOMM
83    $XDIR/mwm &
84    sleep $DELAY
85
86 #if defined(_AIX) && defined(AIXV4)
87 XCOMM
88 XCOMM  Setup xmodmap
89 XCOMM
90 if [ -x CDE_INSTALLATION_TOP/config/Xsession.d/0050.dtxmodmap ]
91 then
92    CDE_INSTALLATION_TOP/config/Xsession.d/0050.dtxmodmap
93 fi
94 #endif
95
96 XCOMM
97 XCOMM  Start the terminal emulator (also the session terminator client).
98 XCOMM
99 #if defined (_AIX)
100    $XDIR/aixterm -ls
101 #else
102    $XDIR/xterm -ls
103 #endif
104
105 #endif