Merge branch 'master' into multi-monitor
[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 #endif
63
64 $XDIR/xsetroot -default &
65
66 #if defined(_AIX) && defined(AIXV4)
67 XCOMM
68 XCOMM  Clear the LFT message locale override if set
69 XCOMM
70 if [ "$LC_MESSAGES" = "C@lft" ]
71 then
72   unset LC_MESSAGES
73 fi
74 #endif
75
76 XCOMM
77 XCOMM  Start a window manager.
78 XCOMM
79    $XDIR/mwm &
80    sleep $DELAY
81
82 #if defined(_AIX) && defined(AIXV4)
83 XCOMM
84 XCOMM  Setup xmodmap
85 XCOMM
86 if [ -x CDE_INSTALLATION_TOP/config/Xsession.d/0050.dtxmodmap ]
87 then
88    CDE_INSTALLATION_TOP/config/Xsession.d/0050.dtxmodmap
89 fi
90 #endif
91
92 XCOMM
93 XCOMM  Start the terminal emulator (also the session terminator client).
94 XCOMM
95 #if defined (_AIX)
96    $XDIR/aixterm -ls
97 #else
98    $XDIR/xterm -ls
99 #endif
100
101 #endif