Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,156 @@
XCOMM!/bin/ksh
XCOMM ####################################################################
XCOMM ## File: 0015.sun.env.src
XCOMM ##
XCOMM ## Default Location: /usr/dt/config/Xsession.d/
XCOMM ##
XCOMM ## Purpose: Setup various items for Solaris desktop support
XCOMM ##
XCOMM ## Description: This script is invoked by means of the Xsession file
XCOMM ## at user login.
XCOMM ##
XCOMM ## Invoked by: /usr/dt/bin/Xsession
XCOMM ##
XCOMM ## Product: @(#)Common Desktop Environment 1.0
XCOMM ##
XCOMM ## $XConsortium: 0015.sun.env.src /main/3 1996/04/23 11:41:31 drk $
XCOMM ##
XCOMM ## (c) Copyright 1993, 1994 Sun Microsystems, Inc.
XCOMM ##
XCOMM ####################################################################
#define HASH #
XCOMM ##########################################################################
XCOMM
XCOMM Directory specifications
XCOMM
XCOMM ##########################################################################
HASH
HASH Set OPENWINHOME
HASH
if [ -z "$OPENWINHOME" ]
then
export OPENWINHOME="/usr/openwin"
fi
HASH
HASH Set MANPATH
HASH
if [ -z "$MANPATH" ]
then
export MANPATH=/usr/man:$OPENWINHOME/share/man
else
export MANPATH=$MANPATH:$OPENWINHOME/share/man
fi
HASH
HASH Set HELPPATH
HASH
if [ -z "$HELPPATH" ]
then
export HELPPATH=$OPENWINHOME/lib/locale:$OPENWINHOME/lib/help
else
export HELPPATH=$HELPPATH:$OPENWINHOME/lib/locale:$OPENWINHOME/lib/help
fi
HASH
HASH Set AnswerBook path
HASH
if [ -z "$AB_CARDCATALOG" ]
then
export AB_CARDCATALOG=/usr/dt/share/answerbooks/$LANG/ab_cardcatalog
else
export AB_CARDCATALOG=/usr/dt/share/answerbooks/$LANG/ab_cardcatalog:$AB_CARDCATALOG
fi
HASH
HASH Set XFILESEARCHPATH
HASH
if [ -z "$XFILESEARCHPATH" ]
then
export XFILESEARCHPATH="$OPENWINHOME/lib/locale/%L/%T/%N%S:$OPENWINHOME/lib/%T/%N%S"
else
export XFILESEARCHPATH="$XFILESEARCHPATH:$OPENWINHOME/lib/locale/%L/%T/%N%S:$OPENWINHOME/lib/%T/%N%S"
fi
HASH Allocate default colormaps for dynamic non-default visuals
if [ -x $OPENWINHOME/bin/cmap_alloc ]
then
$OPENWINHOME/bin/cmap_alloc -allscreens
fi
HASH start virtual keyboard backend
HASH
HASH To start old OpenLook virtual keyboard for use with the OpenLook deskset
HASH applications, uncomment (remove "#" character from) the following 4 lines.
HASH Note, this may add a few extra seconds to your desktop start time.
HASH if [ -x $OPENWINHOME/bin/vkbd ]
HASH then
HASH $OPENWINHOME/bin/vkbd -nopopup &
HASH fi
HASH Init DeskSet colors (for OpenWindow applications)
if [ -x $OPENWINHOME/bin/ds_server_init ]
then
$OPENWINHOME/bin/ds_server_init
fi
HASH Add font paths in $HOME/.OWfontpath
if [ "$DTXSERVERLOCATION" != "remote" ]; then
HASH
HASH Since X server is local,
HASH making one call to xset.
HASH
ADDFONTPATH() {
HASH Combine lines together to make arguments for the xset command
FP=`nawk '
BEGIN { fp="fp+ " }
/^[ ]*$/ { fp=" +fp " ; continue }
{ fontsdir = sprintf("%s%s", $0,"/fonts.dir")
getline fontsdata < fontsdir
if (fontsdata != 0) {
printf("%s%s", fp, $0) ; fp="," ; fontsdata=0 } } ' $1`
if [ -n "$FP" ]; then
eval "$OPENWINHOME/bin/xset $FP"
fi
}
HASH Add personal fontpaths
if [ -r $HOME/.OWfontpath ]; then
ADDFONTPATH $HOME/.OWfontpath
fi
else
HASH
HASH Since X server is not local, we don't know if the font
HASH directories exist on the X server machine, so
HASH setting them one at a time.
HASH
if [ -r $HOME/.OWfontpath ]; then
nawk ' BEGIN {
fp=" fp+ "
XDIR=0
}
/^[ ]*$/ {
fp=" +fp " ; continue }
{cmd = sprintf("%s%s%s%s%s",XDIR,"/xset",fp, $0," 1>/dev/null");
system(cmd); } ' XDIR=$OPENWINHOME/bin .OWfontpath
fi
fi
XCOMM ######################### eof #####################

View File

@@ -0,0 +1,115 @@
XCOMM!/bin/ksh
XCOMM ####################################################################
XCOMM ## File: 0050.dtxmodmap
XCOMM ##
XCOMM ## Default Location: CDE_INSTALLATION_TOP/config/Xsession.d/
XCOMM ##
XCOMM ## Purpose: Perform keyboard mapping
XCOMM ##
XCOMM ## Description:
XCOMM ## This script is invoked by means of the Xsession file
XCOMM ## at user login. It invokes xmodmap to setup the
XCOMM ## keyboard mapping required for selected locales.
XCOMM ##
XCOMM ## Invoked by: CDE_INSTALLATION_TOP/bin/Xsession
XCOMM ##
XCOMM ## Product: @(#)Common Desktop Environment 1.0
XCOMM ##
XCOMM ## Note:
XCOMM ##
XCOMM ## The CDE_INSTALLATION_TOP/config/Xsession.d/0050.dtxmodmap file is a
XCOMM ## factory-default file and will be unconditionally overwritten upon
XCOMM ## subsequent installation. To customize keyboard mapping
XCOMM ## behavior, copy this file to the configuration directory,
XCOMM ## CDE_CONFIGURATION_TOP/config/Xsession.d and customize that version
XCOMM ## of the file.
XCOMM ##
XCOMM ## Revision: $XConsortium: 0050.dtxmodmap.src /main/5 1996/07/18 15:26:04 drk $
XCOMM ##
XCOMM ## (c) Copyright 1993, 1994 Hewlett-Packard Company
XCOMM ## (c) Copyright 1993, 1994 International Business Machines Corp.
XCOMM ## (c) Copyright 1993, 1994 Sun Microsystems, Inc.
XCOMM ## (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of
XCOMM ## Novell, Inc.
XCOMM ##
XCOMM ####################################################################
XCOMM
XCOMM Determine the xmodmap keyboard to be used.
XCOMM
sys_version=`uname -v`
if [ "$sys_version" = "3" ]
then
Cname=C.hft
else
Cname=C
fi
if [ ${DISPLAY%.*} = ":0" ]
then
KBD=""
XDIR=/usr/lpp/X11/defaults/xmodmap
KBD_LANG=`/usr/lpp/X11/bin/querykbd`
if [ "$KBD_LANG" = "NULL" ]
then
dspmsg $XINITRCMSG/xinit.cat 2 'xinit: Odm keyboard id is NULL.\n'
else
if [ "$KBD_LANG" != "$Cname" ]
then
if [ -r $IMKEYMAPPATH/$KBD_LANG/keyboard ]
then
KBD=$IMKEYMAPPATH/$KBD_LANG/keyboard
else
if [ "$IMKEYMAPPATH" = "/usr/lib/nls/im.alt" ]
then
if [ "$sys_version" = "3" /
-a -r $XDIR/$KBD_LANG/keyboard.alt ]
then
KBD=$XDIR/$KBD_LANG/keyboard.alt
else
if [ -r $XDIR/${KBD_LANG}@alt/keyboard ]
then
KBD=$XDIR/${KBD_LANG}@alt/keyboard
fi
fi
fi
if [ "$KBD" = "" ]
then
if [ -r $XDIR/$KBD_LANG/keyboard ]
then
KBD=$XDIR/$KBD_LANG/keyboard
fi
fi
fi
fi
fi
if [ "$KBD" != "" ]
then
xmodmap $KBD
else
if [ "$IMKEYMAPPATH" = "/usr/lib/nls/im.alt" ]
then
if [ "$sys_version" = "3" /
-a -r $XDIR/$KBD_LANG/keyboard.alt ]
then
xmodmap $XDIR/$KBD_LANG/keyboard.alt
exit
fi
if [ -r $XDIR/${KBD_LANG}@alt/keyboard ]
then
xmodmap $XDIR/${KBD_LANG}@alt/keyboard
exit
fi
fi
if [ -r $XDIR/$LANG/keyboard ]
then
xmodmap $XDIR/$LANG/keyboard
fi
fi
fi
XCOMM ######################### eof #####################

View File

@@ -0,0 +1,60 @@
XCOMM !/usr/bin/ksh
XCOMM ####################################################################
XCOMM ## File: 0060.srcsysenv
XCOMM ##
XCOMM ## Default Location: /usr/dt/config/Xsession.d/
XCOMM ##
XCOMM ## Purpose: Source system-defined environment variables
XCOMM ##
XCOMM ## Description:
XCOMM ## This script is invoked by means of the Xsession
XCOMM ## file at user login.
XCOMM ##
XCOMM ## Invoked by: /usr/dt/bin/Xsession
XCOMM ##
XCOMM ## $TOG: 0060.srcsysenv.src /main/1 1998/08/03 18:10:08 devobj $
XCOMM ##
XCOMM ## (c) Copyright 1993, 1994 Hewlett-Packard Company
XCOMM ## (c) Copyright 1993, 1994 International Business Machines Corp.
XCOMM ## (c) Copyright 1993, 1994 Sun Microsystems, Inc.
XCOMM ## (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of
XCOMM ## (c) Copyright 1993, 1994 Novell, Inc.
XCOMM ##
XCOMM ####################################################################
XCOMM ##
XCOMM ####################################################################
#define HASH #
HASH
HASH Source TIMEZONE
HASH
TZ_FILE=/etc/TIMEZONE
if [ -f $TZ_FILE -a -r $TZ_FILE ]; then
. $TZ_FILE
fi
unset TZ_FILE
HASH
HASH Source PATH - it does NOT set the variable so this
HASH this script must take of it
HASH
PATH_FILE=/etc/PATH
if [ -f $PATH_FILE -a -r $PATH_FILE ]; then
export PATH="$PATH:`cat $PATH_FILE`"
fi
unset PATH_FILE
HASH
HASH Source MANPATH - it does NOT set the variable so this
HASH this script must take of it
HASH
MANPATH_FILE=/etc/MANPATH
if [ -f $MANPATH_FILE -a -r $MANPATH_FILE ]; then
export MANPATH="$MANPATH:`cat $MANPATH_FILE`"
fi
unset MANPATH_FILE
XCOMM ######################### eof #####################

View File

@@ -0,0 +1,75 @@
!! $XConsortium: Dtlogin.src /main/3 1996/04/21 19:31:02 drk $
!!######################################################################
!!
!! Dtlogin
!!
!! Application Defaults for the Login Manager
!!
!!
!! (c) Copyright 1993, 1994 Hewlett-Packard Company
!! (c) Copyright 1993, 1994 International Business Machines Corp.
!! (c) Copyright 1993, 1994 Sun Microsystems, Inc.
!! (c) Copyright 1993, 1994 Novell, Inc.
!!
!! ************ DO NOT EDIT THIS FILE *************
!!
!! CDE_INSTALLATION_TOP/app-defaults/$LANG/Dtlogin is a factory-default file
!! and will be unconditionally overwritten upon subsequent installation.
!! Modification is discouraged.
!!
!!######################################################################
!!
!! This file contains appearance and behaviour resources for the Dtlogin
!! login screen.
!!
!!######################################################################
!!
!! FONTS
!!
!! labelFont button and label text
!! textFont help and error dialog text
!!
XCOMM if WIDTH >= 1280
!! Dtlogin*labelFont: -*-swiss 742-medium-r-normal-*-140-*-p-110-*
!! Dtlogin*textFont: -*-prestige-medium-r-normal-*-128-72-*
XCOMM else
XCOMM if WIDTH >= 1024
!! Dtlogin*labelFont: -*-swiss 742-bold-r-normal-*-140-*-p-100-*
!! Dtlogin*textFont: -*-prestige-medium-r-normal-*-128-72-*
XCOMM else
!! Dtlogin*textFont: -*-helvetica-bold-r-normal-*-100-*
XCOMM endif
XCOMM endif
Dtlogin*labelFont: %|nls-1-#labelFont#|
Dtlogin*textFont: %|nls-2-#textFont#|
!!######################################################################
!!
!! GREETING
!!
!! Dtlogin*greeting.foreground: black
!! Dtlogin*greeting.background: #a8a8a8
!! Dtlogin*greeting.fontList: -*-*schoolbook-medium-i-normal--18-*
!! Dtlogin*greeting.labelString: Welcome to %LocalHost%
!! Dtlogin*greeting.alignment: ALIGNMENT_CENTER
Dtlogin*greeting.fontList: %|nls-3-#greeting.fontList#|
!!######################################################################
!!
!! Size of Text Input Area
!!
Dtlogin*login_text.columns: %|nls-4-#20#|
Dtlogin*passwd_text.columns: %|nls-5-#20#|

View File

@@ -0,0 +1,79 @@
XCOMM $TOG: Imakefile /main/10 1999/02/26 11:28:56 mgreess $
#if InstallXdmConfig
XDMCONFIG = xdm-config
XDMRESOURCES = Xresources
XDMSERVERS = Xservers
XDMSESSION = Xsession
InstallNonExec($(XDMCONFIG),$(XDMDIR))
InstallNonExec($(XDMRESOURCES),$(XDMDIR))
InstallNonExec($(XDMSERVERS),$(XDMDIR))
InstallNonExec($(XDMSESSION),$(XDMDIR))
Xservers:
echo "Choose one of" Xservers.* "and copy it to Xservers"
exit 1
#endif
LOCAL_CPP_DEFINES = -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
-DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
-DCDE_LOGFILES_TOP=$(CDE_LOGFILES_TOP) \
-DXPROJECTROOT=X11ProjectRoot
#ifdef SunArchitecture
EXTRA_CPP_TARGETS = \
0015.sun.env \
Xresources.ow \
Xsession.ow \
Xsession.ow2
#else
EXTRA_CPP_TARGETS =
#endif
CPP_TARGETS = \
0060.dtsysenv Dtlogin \
Xaccess Xconfig \
Xconfig.con Xconfig.nc \
Xfailsafe Xreset \
Xresources Xresources.ive \
Xservers Xservers.con \
Xservers.nc Xsession \
Xsession.ive Xsetup \
Xstartup current.session \
display.current.session display.home.session \
dtlslocale dtprofile \
home.session $(EXTRA_CPP_TARGETS)
AllTarget($(CPP_TARGETS))
CppScriptTarget(0015.sun.env,0015.sun.env.src,$(LOCAL_CPP_DEFINES),)
CppScriptTarget(0020.dtims,0020.dtims.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(0060.dtsysenv,0060.dtsysenv.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(Dtlogin,Dtlogin.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(Xaccess,Xaccess.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(Xconfig,Xconfig.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(Xconfig.con,Xconfig.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(Xconfig.nc,Xconfig.src,-D_NO_CONSOLE $(LOCAL_CPP_DEFINES),)
CppScriptTarget(Xfailsafe,Xfailsafe.src,$(LOCAL_CPP_DEFINES),)
CppScriptTarget(Xreset,Xreset.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(Xresources,Xresources.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(Xresources.ive,Xresources.src,-DIVE $(LOCAL_CPP_DEFINES),)
CppSourceFile(Xresources.ow,Xresources.ow.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(Xservers,Xservers.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(Xservers.con,Xservers.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(Xservers.nc,Xservers.src,-D_NO_CONSOLE $(LOCAL_CPP_DEFINES),)
CppSourceFile(Xservers.nc,Xservers.src,-D_NO_CONSOLE,)
CppScriptTarget(Xsession,Xsession.src,$(LOCAL_CPP_DEFINES),)
CppScriptTarget(Xsession.ive,Xsession.src,-DIVE $(LOCAL_CPP_DEFINES),)
CppScriptTarget(Xsession.ow,Xsession.ow.src,$(LOCAL_CPP_DEFINES),)
CppScriptTarget(Xsession.ow2,Xsession.ow2.src,$(LOCAL_CPP_DEFINES),)
CppScriptTarget(Xsetup,Xsetup.src,$(LOCAL_CPP_DEFINES),)
CppScriptTarget(Xstartup,Xstartup.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(current.session,current.session.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(display.current.session,display.current.session.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(display.home.session,display.home.session.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(dtlslocale,dtlslocale.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(dtprofile,dtprofile.src,$(LOCAL_CPP_DEFINES),)
CppSourceFile(home.session,home.session.src,$(LOCAL_CPP_DEFINES),)

View File

@@ -0,0 +1,17 @@
/* $XConsortium: README /main/2 1996/07/15 14:15:04 drk $ */
* *
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*
Xdm Sample Configuration
This directory contains a collection of files which describe a sample
configuration of xdm. Choose between the sample Xservers.* files; copy the
appropriate one to "/usr/lib/X11/xdm/Xservers" along with the other
files in this directory.
Only a few of the many configuration parameters which xdm can be tuned with
are set in this sample, read the xdm manual page for a complete description.

View File

@@ -0,0 +1,126 @@
XCOMM #####################################################################
XCOMM
XCOMM Xaccess
XCOMM Common Desktop Environment
XCOMM
XCOMM (c) Copyright 1993, 1994 Hewlett-Packard Company
XCOMM (c) Copyright 1993, 1994 International Business Machines Corp.
XCOMM (c) Copyright 1993, 1994 Sun Microsystems, Inc.
XCOMM (c) Copyright 1993, 1994 Novell, Inc.
XCOMM
XCOMM ************** DO NOT EDIT THIS FILE **************
XCOMM
XCOMM CDE_INSTALLATION_TOP/config/Xaccess is a factory-default file and will
XCOMM be unconditionally overwritten upon subsequent installation.
XCOMM Before making changes to the file, copy it to the configuration
XCOMM directory, CDE_CONFIGURATION_TOP/config. You must also update the accessFile
XCOMM resource in CDE_CONFIGURATION_TOP/config/Xconfig.
XCOMM
XCOMM $XConsortium: Xaccess.src /main/5 1996/04/23 11:42:01 drk $
XCOMM
XCOMM #####################################################################
XCOMM
XCOMM This file contains a list of host names which are allowed or
XCOMM denied XDMCP connection access to this machine. When a remote
XCOMM display (typically an X-termimal) requests login service, Dtlogin
XCOMM will consult this file to determine if service should be granted
XCOMM or denied.
XCOMM
XCOMM # Access control file for XDMCP connections
XCOMM
XCOMM To control Direct and Broadcast access:
XCOMM
XCOMM pattern
XCOMM
XCOMM To control Indirect queries:
XCOMM
XCOMM pattern list of hostnames and/or macros ...
XCOMM
XCOMM To use the chooser:
XCOMM
XCOMM pattern CHOOSER BROADCAST
XCOMM
XCOMM or
XCOMM
XCOMM pattern CHOOSER list of hostnames and/or macros ...
XCOMM
XCOMM To define macros:
XCOMM
XCOMM %name list of hosts ...
XCOMM
XCOMM
XCOMM The first form tells dtlogin which displays to respond to itself.
XCOMM The second form tells dtlogin to forward indirect queries from hosts
XCOMM matching the specified pattern to the indicated list of hosts.
XCOMM The third form tells dtlogin to handle indirect queries using the
XCOMM chooser; the chooser is directed to send its own queries out via the
XCOMM broadcast address and display the results on the terminal.
XCOMM The fourth form is similar to the third, except instead of using the
XCOMM broadcast address, it sends DirectQuerys to each of the hosts in
XCOMM the list
XCOMM
XCOMM In all cases, dtlogin uses the first entry which matches the terminal;
XCOMM for IndirectQuery messages only entries with right hand sides can
XCOMM match, for Direct and Broadcast Query messages, only entries without
XCOMM right hand sides can match.
XCOMM
XCOMM Information regarding the format of entries in this file is
XCOMM included at the end of the file.
XCOMM
XCOMM #####################################################################
XCOMM Entries...
* # grant service to all remote displays
XCOMM
XCOMM The nicest way to run the chooser is to just ask it to broadcast
XCOMM requests to the network - that way new hosts show up automatically.
XCOMM Sometimes, however, the chooser can't figure out how to broadcast,
XCOMM so this may not work in all environments.
XCOMM
* CHOOSER BROADCAST # any indirect host can get a chooser
XCOMM
XCOMM If you'd prefer to configure the set of hosts each terminal sees,
XCOMM then just uncomment these lines (and comment the CHOOSER line above)
XCOMM and edit the %hostlist line as appropriate
XCOMM
XCOMM %hostlist host-a host-b
XCOMM * CHOOSER %hostlist #
XCOMM #####################################################################
XCOMM
XCOMM ENTRY FORMAT
XCOMM
XCOMM An entry in this file is either a host name or a pattern. A
XCOMM pattern may contain one or more meta characters (`*' matches any
XCOMM sequence of 0 or more characters, and `?' matches any single
XCOMM character) which are compared against the host name of the remote
XCOMM device requesting service.
XCOMM
XCOMM If the entry is a host name, all comparisons are done using
XCOMM network addresses, so any name which converts to the correct
XCOMM network address may be used. For patterns, only canonical host
XCOMM names are used in the comparison, so do not attempt to match
XCOMM aliases.
XCOMM
XCOMM Preceding either a host name or a pattern with a `!' character
XCOMM causes hosts which match that entry to be excluded.
XCOMM
XCOMM When checking access for a particular display host, each entry is
XCOMM scanned in turn and the first matching entry determines the
XCOMM response.
XCOMM
XCOMM Blank lines are ignored, `#' is treated as a comment delimiter
XCOMM causing the rest of that line to be ignored,
XCOMM
XCOMM ex.
XCOMM !xtra.lcs.mit.edu # disallow direct/broadcast service for xtra
XCOMM bambi.ogi.edu # allow access from this particular display
XCOMM *.lcs.mit.edu # allow access from any display in LCS

View File

@@ -0,0 +1,188 @@
XCOMM ##########################################################################
XCOMM
XCOMM Xconfig
XCOMM
XCOMM Common Desktop Environment (CDE)
XCOMM
XCOMM Configuration file for the Login Manager
XCOMM
XCOMM (c) Copyright 1993, 1994 Hewlett-Packard Company
XCOMM (c) Copyright 1993, 1994 International Business Machines Corp.
XCOMM (c) Copyright 1993, 1994 Sun Microsystems, Inc.
XCOMM (c) Copyright 1993, 1994 Novell, Inc.
XCOMM
XCOMM $XConsortium: Xconfig.src /main/6 1996/06/27 11:10:38 mgreess $
XCOMM
XCOMM ************** DO NOT EDIT THIS FILE **************
XCOMM
XCOMM CDE_INSTALLATION_TOP/config/Xconfig is a factory-default file and will
XCOMM be unconditionally overwritten upon subsequent installation.
XCOMM Before making changes to the file, copy it to the configuration
XCOMM directory, CDE_CONFIGURATION_TOP/config.
XCOMM
XCOMM This file contains behaviour resources for the CDE DT Login Manager.
XCOMM It also specifies the location of other configuration files used by
XCOMM the Login Manager.
XCOMM
XCOMM Appearance resources for the login screen are contained in the file
XCOMM specified by the "*resources" resource below.
XCOMM
XCOMM Most resources can be limited to a single display by including the
XCOMM display name in the resource. If the display name is not included, the
XCOMM resource will apply to all displays managed by the Login Manager. When
XCOMM specifying the display name, replace the ":" character in the name
XCOMM with an underscore "_". If the name is fully qualified, also replace
XCOMM dot "." characters with underscores.
XCOMM
XCOMM Example:
XCOMM
XCOMM Dtlogin*machine_domain_name_0*startup: CDE_CONFIGURATION_TOP/config/Xstartup.aa
XCOMM
XCOMM For more information see the man page, Dtlogin(1X).
XCOMM
XCOMM ##########################################################################
Dtlogin.errorLogFile: CDE_LOGFILES_TOP/Xerrors
Dtlogin.pidFile: CDE_LOGFILES_TOP/Xpid
XCOMM #########################################################################
XCOMM Note: If you do not specify a full path beginning with a "/"
XCOMM dtlogin will first search for the following files in
XCOMM /etc/dt/config then in /usr/dt/config.
XCOMM
XCOMM #########################################################################
Dtlogin.accessFile: Xaccess
#if defined (_NO_CONSOLE)
Dtlogin.servers: Xservers.nc
#else
#if defined (__osf__)
Dtlogin.servers: Xservers.con
#else
Dtlogin.servers: Xservers
#endif
#endif
Dtlogin*resources: %L/Xresources
Dtlogin*startup: Xstartup
Dtlogin*reset: Xreset
Dtlogin*setup: Xsetup
#if defined (__hpux) || defined (_AIX) || defined (sun) || defined (__osf__)
Dtlogin*failsafeClient: Xfailsafe
#else
Dtlogin*failsafeClient: /usr/bin/X11/xterm
#endif
XCOMM #########################################################################
XCOMM To specify the system env vars to be exported to the users session
XCOMM
XCOMM Dtlogin.exportList: ODMDIR NLSPATH TZ ...
#ifdef _AIX
Dtlogin.exportList: ODMDIR NLSPATH TZ
#endif
XCOMM #########################################################################
XCOMM To specify the languages listed in the [Options] [Languages] menu.
XCOMM
XCOMM Dtlogin*languageList: <lang1> <lang2> <lang3>
XCOMM #########################################################################
XCOMM To specify a default language for the display.
XCOMM
XCOMM Dtlogin*language: <lang>
XCOMM #########################################################################
XCOMM #
XCOMM # To specify the system languages that should not be displayed in
XCOMM # the default [Options] [Languages] menu. The default menu includes
XCOMM # all the locales installed on the system, except for the ones
XCOMM # in this resource. Filename patterns may be used.
XCOMM #
XCOMM # The resource is typically used to filter out locale synonyms
XCOMM # and locales that don't have desktop support.
XCOMM #
XCOMM # Each locale in the NLS directory is compared against each of the
XCOMM # language patterns in the ignoreLocales list using "fnmatch".
XCOMM # Any locales which match are NOT included in the list of locales
XCOMM # displayed to the user.
XCOMM #
XCOMM # Dtlogin*ignoreLocales: <lang_pattern1> <lang_pattern2>
XCOMM #
#if defined (__osf__)
Dtlogin*ignoreLocales: *.88591* *@ucs4 *@chuyin *@pinyin *@radical *@stroke \
ca_ES cs_CZ hu_HU iw_IL lt_LT pl_PL ru_RU sk_SK sl_SI
#endif
XCOMM #########################################################################
XCOMM To specify global environment variables for the X-server and all users
XCOMM on the display. User variables can also be specified in the Xsession file.
XCOMM
XCOMM Dtlogin*environment: <name=value> <name=value>
XCOMM #########################################################################
XCOMM To specify a default user PATH environment variable.
XCOMM
XCOMM Dtlogin*userPath: <path>
XCOMM #########################################################################
XCOMM To set a display to run the user's XDM $HOME/.xsession script as the
XCOMM default session. Ensure that the $HOME/.xsession script is executable.
XCOMM
XCOMM Dtlogin*xdmMode: True
XCOMM #########################################################################
XCOMM To terminate and restart the X-server at user logout.
XCOMM
XCOMM Dtlogin*terminateServer: True
XCOMM #########################################################################
XCOMM To disable listening for XDMCP requests from X-terminals.
XCOMM
XCOMM Dtlogin.requestPort: 0
XCOMM #########################################################################
XCOMM To disable R4 MIT-MAGIC-COOKIE-1 per-user authorization.
XCOMM
XCOMM Dtlogin*authorize: False
XCOMM #########################################################################
XCOMM To specify how long the Login Manager waits to connect to an X-server.
XCOMM
XCOMM Dtlogin*openTimeout: <seconds>
XCOMM #########################################################################
XCOMM To specify how often the Login Manager "pings" a remote display to
XCOMM determine if it is still active.
XCOMM
XCOMM Dtlogin*pingInterval: <minutes>
XCOMM Dtlogin*pingTimeout: <minutes>
XCOMM #########################################################################
XCOMM To release the server grab on the display when the login screen is
XCOMM present. Doing so will reduce security capabilities of the Login Manager.
XCOMM
XCOMM Dtlogin*grabServer: False
XCOMM #########################################################################
XCOMM To specify the maximum size of the Login Manager error log file in
XCOMM kilobytes.
XCOMM
XCOMM Dtlogin.errorLogSize: 50

View File

@@ -0,0 +1,93 @@
XCOMM!/bin/sh
XCOMM #####################################################################
XCOMM
XCOMM Xfailsafe
XCOMM
XCOMM Common Desktop Environment
XCOMM
XCOMM Configuration file for the Login Manager
XCOMM
XCOMM (c) Copyright 1993, 1994 Hewlett-Packard Company
XCOMM (c) Copyright 1993, 1994 International Business Machines Corp.
XCOMM (c) Copyright 1993, 1994 Sun Microsystems, Inc.
XCOMM (c) Copyright 1993, 1994 Novell, Inc.
XCOMM
XCOMM ************** DO NOT EDIT THIS FILE **************
XCOMM
XCOMM CDE_INSTALLATION_TOP/config/Xfailsafe is a factory-default file and will
XCOMM be unconditionally overwritten upon subsequent installation.
XCOMM Before making changes to the file, copy it to the configuration
XCOMM directory, CDE_CONFIGURATION_TOP/config. You must also update the
XCOMM failsafeClient resource in CDE_CONFIGURATION_TOP/config/Xconfig.
XCOMM
XCOMM $XConsortium: Xfailsafe.src /main/5 1996/07/02 11:39:20 mgreess $
XCOMM #####################################################################
XCOMM
XCOMM
XCOMM This file contains commands to invoke a simple session for repairs of
XCOMM a dysfunctional environment.
XCOMM
XCOMM All clients should be run in the background with the exception of the
XCOMM last client. When the last client is terminated by the user, the session
XCOMM will be terminated and the login screen will be presented.
XCOMM
#ifdef sun
XCOMM This simple session consists of a single terminal emulator.
#else
XCOMM This simple session consists of a window manager and a single terminal
XCOMM emulator.
#endif
#ifdef sun
XDIR=/usr/openwin/bin
$XDIR/xterm -C -ls
#else
XCOMM
XCOMM Global variables
XCOMM
XDIR=/usr/bin/X11
DELAY=2
XCOMM
XCOMM Set background to default weave.
XCOMM
$XDIR/xsetroot -default &
#if defined(_AIX) && defined(AIXV4)
XCOMM
XCOMM Clear the LFT message locale override if set
XCOMM
if [ "$LC_MESSAGES" = "C@lft" ]
then
unset LC_MESSAGES
fi
#endif
XCOMM
XCOMM Start a window manager.
XCOMM
$XDIR/mwm &
sleep $DELAY
#if defined(_AIX) && defined(AIXV4)
XCOMM
XCOMM Setup xmodmap
XCOMM
if [ -x CDE_INSTALLATION_TOP/config/Xsession.d/0050.dtxmodmap ]
then
CDE_INSTALLATION_TOP/config/Xsession.d/0050.dtxmodmap
fi
#endif
XCOMM
XCOMM Start the terminal emulator (also the session terminator client).
XCOMM
#if defined (_AIX)
$XDIR/aixterm -ls
#else
$XDIR/xterm -ls
#endif
#endif

View File

@@ -0,0 +1,80 @@
XCOMM! /bin/ksh
XCOMM ##########################################################################
XCOMM
XCOMM Xreset
XCOMM
XCOMM Common Desktop Environment (CDE)
XCOMM
XCOMM Configuration file for the Login Manager
XCOMM
XCOMM (c) Copyright 1993, 1994 Hewlett-Packard Company
XCOMM (c) Copyright 1993, 1994 International Business Machines Corp.
XCOMM (c) Copyright 1993, 1994 Sun Microsystems, Inc.
XCOMM (c) Copyright 1993, 1994 Novell, Inc.
XCOMM
XCOMM ************** DO NOT EDIT THIS FILE **************
XCOMM
XCOMM CDE_INSTALLATION_TOP/config/Xreset is a factory-default file and will
XCOMM be unconditionally overwritten upon subsequent installation.
XCOMM Before making changes to the file, copy it to the configuration
XCOMM directory, CDE_CONFIGURATION_TOP/config. You must also update the reset
XCOMM resource in CDE_CONFIGURATION_TOP/config/Xconfig.
XCOMM
XCOMM $XConsortium: Xreset.src /main/6 1996/08/15 16:51:53 rswiston $
XCOMM
XCOMM
XCOMM This file is symmetrical with Xstartup. This script is run after the user
XCOMM session is terminated. Run as root, it should probably contain commands
XCOMM that undo the effects of commands in Xstartup, such as unmounting directories
XCOMM from file servers. The collection of environment variables that were passed
XCOMM to Xstartup are also passed to Xreset.
XCOMM
XCOMM ##########################################################################
XCOMM
XCOMM This script is run as root after the session terminates but
XCOMM before the display is closed...
XCOMM
XCOMM
XCOMM Update action types for any printers created during the session
XCOMM
if [ -x /usr/dt/bin/dtprintinfo ]
then
/usr/dt/bin/dtprintinfo -populate
fi
XCOMM
XCOMM Reset console ownership if local session
XCOMM
if [ "$DTXSERVERLOCATION" = "local" ]
then
if [[ ! -z "$ITE" && "$ITE" != "??" && -a "/dev/$ITE" ]]
then
chown root /dev/$ITE
chgrp $ROOT_GID /dev/$ITE
fi
fi
XCOMM
XCOMM If Xsession did not exit gracefully for this user, the dtdbcache
XCOMM file will still be left around. Remove it if this user owns it.
XCOMM
XCOMM dtdbcache file's directory should match
XCOMM _DTDTSMMTEMPDIR in DtSvc/DtUtil1/DtsMM.h
#ifdef __osf__
DTDBFILE=/var/tmp/dtdbcache_$DISPLAY
#else
DTDBFILE=/tmp/dtdbcache_$DISPLAY
#endif
if [ -f $DTDBFILE ]
then
DTDBFILEOWNER=`/bin/ls -l $DTDBFILE | /bin/awk '{print $3}'`
if [ $USER = $DTDBFILEOWNER ]
then
/bin/rm -f $DTDBFILE
fi
fi

View File

@@ -0,0 +1,22 @@
!!######################################################################
!! $XConsortium: Xresources.ow.src /main/3 1996/11/19 11:40:46 drk $
!!
!! Xresources.ow
!!
!! Configuration file for the OpenWindow alternate desktop resources
!!
!! (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
!!
!! @(#)Xresources.ow.src 1.1 95/03/10
!!
!!######################################################################
!!
!! This file used by the Solaris Desktop Login manager
Dtlogin*altDtsIncrement: True
Dtlogin*altDtName: %|nls-291-#OpenWindows#|
Dtlogin*altDtKey: /usr/openwin/bin/olwm
Dtlogin*altDtStart: /usr/dt/config/Xsession.ow
Dtlogin*altDtLogo: OWlogo

View File

@@ -0,0 +1,595 @@
!!######################################################################
!!
!! Xresources
!!
!! Common Desktop Environment
!!
!! Configuration file for the Login Manager
!!
!! (c) Copyright 1993, 1994 Hewlett-Packard Company
!! (c) Copyright 1993, 1994 International Business Machines Corp.
!! (c) Copyright 1993, 1994 Sun Microsystems, Inc.
!! (c) Copyright 1993, 1994 Novell, Inc.
!!
!! ************** DO NOT EDIT THIS FILE **************
!!
!! CDE_INSTALLATION_TOP/config/Xresources is a factory-default file and will
!! be unconditionally overwritten upon subsequent installation.
!! Before making changes to the file, copy it to the configuration
!! directory, CDE_CONFIGURATION_TOP/config. You must also update the resources
!! resource in CDE_CONFIGURATION_TOP/config/Xconfig.
!!
!! $TOG: Xresources.src /main/12 1998/11/03 19:16:07 mgreess $
!!
!!######################################################################
!!
!!
!! This file contains appearance and behaviour resources for the Dtlogin
!! login screen. These are designed to be read into the root window
!! property via the 'xrdb' program. Dtlogin will do this automatically
!! after the server is reset and will remove them before the session
!! starts.
!!
!! Dtlogin contains internal default values for all resources. To
!! override a default value, uncomment the appropriate line below and
!! supply the desired value.
!!
!! Customization hints are included at the end of this file.
!!
!!
!!######################################################################
!!
!! Motif visuals
!!
*DtMenuButton*shadowThickness: 1
*enableThinThickness:1
*highlightThickness:1
*enableButtonTab: True
*enableDefaultButton: True
*enableEtchedInMenu: True
*enableMenuInCascade: True
*enableMultiKeyBindings: True
*enableToggleColor: True
*enableToggleVisual: True
!#################################################################
!# translations for the text field widget
!#
!#
!#
!#################################################################
*XmTextField*Translations:#override\n\
Ctrl<Key>u:delete-to-start-of-line()\n\
Ctrl<Key>k:delete-to-end-of-line()\n\
Ctrl<Key>a:beginning-of-line()\n\
Ctrl<Key>e:end-of-line()\n\
Ctrl<Key>b:backward-character()\n\
Ctrl<Key>f:forward-character()
!!######################################################################
!!
!! COLORS
!!
!! #a8a8a8 = lightgray
!! #7e7e7e = gray (darker shade)
!! #ef506f = burgundy
!!
!! Dtlogin*foreground: black
XCOMM ifdef COLOR
!! Dtlogin*background: #a8a8a8
#ifdef IVE
Dtlogin*highlightColor: #7D7DCBCBD4D4
#else /* IVE */
!! Dtlogin*highlightColor: #ef506f
#endif /* IVE */
#ifdef IVE
Dtlogin*logo*Background: #7D7DCBCBD4D4
#else /* IVE */
!! Dtlogin*logo*Background: #ef506f
#endif /* IVE */
XCOMM else
!! Dtlogin*background: white
XCOMM endif
!!######################################################################
!!
!! FONTS
!!
!! labelFont button and label text
!! textFont help and error dialog text
!!
XCOMM if WIDTH < 1024
Dtlogin*labelFont: %|nls-8-#labelFont#|
Dtlogin*textFont: %|nls-9-#textFont#|
Dtlogin*greeting.fontList: %|nls-10-#greeting.fontList#|
Dtlogin*MessageBox*labelFontList: %|nls-8-#labelFont#|
XCOMM else
Dtlogin*labelFont: %|nls-1-#labelFont#|
Dtlogin*textFont: %|nls-2-#labelFont#|
Dtlogin*greeting.fontList: %|nls-3-#greeting.fontList#|
Dtlogin*MessageBox*labelFontList: %|nls-1-#labelFont#|
XCOMM endif
!!######################################################################
!!
!! CURSOR
!!
!! False = The MIT "X" cursor (default)
!! True = The left pointer cursor
Dtlogin*workspaceCursor: True
!!######################################################################
!!
!! GREETING
!!
!! Dtlogin*greeting.foreground: black
!! Dtlogin*greeting.background: #a8a8a8
!! Dtlogin*greeting.labelString: Welcome to %LocalHost%
!! Dtlogin*greeting.persLabelString: Welcome %s
!! Dtlogin*greeting.alignment: ALIGNMENT_CENTER
!!######################################################################
!!
!! Size of Text Input Area
!!
Dtlogin*login_text.columns: %|nls-4-#20#|
Dtlogin*passwd_text.columns: %|nls-5-#20#|
!!######################################################################
!!
!! MISC
!!
#ifdef IVE
Dtlogin*logo*bitmapFile: MPowerLogo
#else /* IVE */
!! Dtlogin*logo*bitmapFile: < bitmap or pixmap file >
#endif /* IVE */
Dtlogin*preeditType:
#if defined (_AIX) && defined (AIXV4)
!!######################################################################
!!
!! LANGUAGE LIST COMMAND
!!
!! The Dtlogin*languageListCmd is used to generate the list of
!! languages available on the login screen. The Dtlogin*languageList
!! resource takes precidence over this resource.
!!
Dtlogin*languageListCmd: /usr/dt/bin/dtlslocale
#undef C
XCOMM undef C
!!######################################################################
!!
!! LANGUAGE MENU NAME MAPPINGS
!!
!! Dtlogin*Fr_FR.languageName: French
!! Dtlogin*pt_PT.languageName: Portuguese - ISO8859-1
!!
#endif /* _AIX && AIXV4 */
#if defined (_AIX) && !defined (AIXV4)
!!######################################################################
!!
!! LANGUAGE MENU NAME MAPPINGS
#undef C
XCOMM undef C
Dtlogin*Ar_AA.languageName: %|nls-100-##|
Dtlogin*C.languageName: %|nls-101-##|
Dtlogin*Da_DK.languageName: %|nls-102-##|
Dtlogin*De_CH.languageName: %|nls-103-##|
Dtlogin*De_DE.languageName: %|nls-104-##|
Dtlogin*En_GB.languageName: %|nls-105-##|
Dtlogin*En_US.languageName: %|nls-106-##|
Dtlogin*Es_ES.languageName: %|nls-107-##|
Dtlogin*Fi_FI.languageName: %|nls-108-##|
Dtlogin*Fr_BE.languageName: %|nls-109-##|
Dtlogin*Fr_CA.languageName: %|nls-110-##|
Dtlogin*Fr_CH.languageName: %|nls-111-##|
Dtlogin*Fr_FR.languageName: %|nls-112-##|
Dtlogin*Is_IS.languageName: %|nls-113-##|
Dtlogin*It_IT.languageName: %|nls-114-##|
Dtlogin*Iw_IL.languageName: %|nls-115-##|
Dtlogin*Ja_JP.languageName: %|nls-116-##|
Dtlogin*Jp_JP.languageName: %|nls-117-##|
Dtlogin*Nl_BE.languageName: %|nls-118-##|
Dtlogin*Nl_NL.languageName: %|nls-119-##|
Dtlogin*No_NO.languageName: %|nls-120-##|
Dtlogin*POSIX.languageName: %|nls-121-##|
Dtlogin*Pt_PT.languageName: %|nls-122-##|
Dtlogin*Sv_SE.languageName: %|nls-123-##|
Dtlogin*UNIVERSAL.languageName: %|nls-124-##|
Dtlogin*ar_AA.languageName: %|nls-125-##|
Dtlogin*bg_BG.languageName: %|nls-126-##|
Dtlogin*cs_CS.languageName: %|nls-127-##|
Dtlogin*da_DK.languageName: %|nls-128-##|
Dtlogin*de_CH.languageName: %|nls-129-##|
Dtlogin*de_DE.languageName: %|nls-130-##|
Dtlogin*el_GR.languageName: %|nls-131-##|
Dtlogin*en_GB.languageName: %|nls-132-##|
Dtlogin*en_US.languageName: %|nls-133-##|
Dtlogin*es_ES.languageName: %|nls-134-##|
Dtlogin*fi_FI.languageName: %|nls-135-##|
Dtlogin*fr_BE.languageName: %|nls-136-##|
Dtlogin*fr_CA.languageName: %|nls-137-##|
Dtlogin*fr_CH.languageName: %|nls-138-##|
Dtlogin*fr_FR.languageName: %|nls-139-##|
Dtlogin*hr_HR.languageName: %|nls-140-##|
Dtlogin*hu_HU.languageName: %|nls-141-##|
Dtlogin*is_IS.languageName: %|nls-142-##|
Dtlogin*it_IT.languageName: %|nls-143-##|
Dtlogin*iw_IL.languageName: %|nls-144-##|
Dtlogin*ja_JP.languageName: %|nls-145-##|
Dtlogin*ko_KR.languageName: %|nls-146-##|
Dtlogin*mk_MK.languageName: %|nls-147-##|
Dtlogin*nl_BE.languageName: %|nls-148-##|
Dtlogin*nl_NL.languageName: %|nls-149-##|
Dtlogin*no_NO.languageName: %|nls-150-##|
Dtlogin*pl_PL.languageName: %|nls-151-##|
Dtlogin*pt_PT.languageName: %|nls-152-##|
Dtlogin*ro_RO.languageName: %|nls-153-##|
Dtlogin*ru_RU.languageName: %|nls-154-##|
Dtlogin*sh_YU.languageName: %|nls-155-##|
Dtlogin*si_SI.languageName: %|nls-156-##|
Dtlogin*sk_SK.languageName: %|nls-157-##|
Dtlogin*sp_YU.languageName: %|nls-158-##|
Dtlogin*sv_SE.languageName: %|nls-159-##|
Dtlogin*tr_TR.languageName: %|nls-160-##|
Dtlogin*zh_TW.languageName: %|nls-161-##|
#endif /* _AIX && !AIXV4 */
#if defined (sun)
!!######################################################################
!!
!! LANGUAGE MENU NAME MAPPINGS
#undef C
XCOMM undef C
Dtlogin*C.languageName : %|nls-200-##|
Dtlogin*de.languageName : %|nls-201-##|
Dtlogin*fr.languageName : %|nls-202-##|
Dtlogin*it.languageName : %|nls-203-##|
Dtlogin*sv.languageName : %|nls-204-##|
Dtlogin*es.languageName : %|nls-205-##|
Dtlogin*en_US.languageName : %|nls-206-##|
Dtlogin*ja.languageName : %|nls-207-##|
Dtlogin*japanese.languageName: %|nls-208-##|
Dtlogin*ko.languageName : %|nls-209-##|
Dtlogin*korean.languageName : %|nls-210-##|
Dtlogin*zh.languageName : %|nls-211-##|
Dtlogin*chinese.languageName : %|nls-212-##|
Dtlogin*zh_TW.languageName : %|nls-213-##|
Dtlogin*tchinese.languageName: %|nls-214-##|
Dtlogin*ca.languageName : %|nls-215-##|
Dtlogin*en_AU.languageName : %|nls-216-##|
Dtlogin*en_CA.languageName : %|nls-217-##|
Dtlogin*en_IE.languageName : %|nls-218-##|
Dtlogin*en_NZ.languageName : %|nls-219-##|
Dtlogin*en_UK.languageName : %|nls-220-##|
Dtlogin*da.languageName : %|nls-221-##|
Dtlogin*nl.languageName : %|nls-222-##|
Dtlogin*nl_BE.languageName : %|nls-223-##|
Dtlogin*su.languageName : %|nls-224-##|
Dtlogin*fr_CA.languageName : %|nls-225-##|
Dtlogin*fr_BE.languageName : %|nls-226-##|
Dtlogin*fr_CH.languageName : %|nls-227-##|
Dtlogin*de_CH.languageName : %|nls-228-##|
Dtlogin*no.languageName : %|nls-229-##|
Dtlogin*pt.languageName : %|nls-230-##|
Dtlogin*es_AR.languageName : %|nls-231-##|
Dtlogin*es_BO.languageName : %|nls-232-##|
Dtlogin*es_CL.languageName : %|nls-233-##|
Dtlogin*es_CO.languageName : %|nls-234-##|
Dtlogin*es_CR.languageName : %|nls-235-##|
Dtlogin*es_EC.languageName : %|nls-236-##|
Dtlogin*es_SV.languageName : %|nls-237-##|
Dtlogin*es_GT.languageName : %|nls-238-##|
Dtlogin*es_MX.languageName : %|nls-239-##|
Dtlogin*es_NI.languageName : %|nls-240-##|
Dtlogin*es_PA.languageName : %|nls-241-##|
Dtlogin*es_PY.languageName : %|nls-242-##|
Dtlogin*es_PE.languageName : %|nls-243-##|
Dtlogin*es_UY.languageName : %|nls-244-##|
Dtlogin*es_VE.languageName : %|nls-245-##|
Dtlogin*pt_BR.languageName : %|nls-246-##|
#endif /* sun */
#if defined (__hpux)
!!######################################################################
!!
!! LANGUAGE MENU NAME MAPPINGS
#undef C
XCOMM undef C
Dtlogin*C.languageName: %|nls-300-##|
Dtlogin*C.iso88591.languageName: %|nls-301-##|
Dtlogin*POSIX.languageName: %|nls-302-##|
Dtlogin*ar_DZ.arabic8.languageName: %|nls-303-##|
Dtlogin*ar_SA.arabic8.languageName: %|nls-304-##|
Dtlogin*ar_SA.iso88596.languageName: %|nls-305-##|
Dtlogin*bg_BG.iso88595.languageName: %|nls-306-##|
Dtlogin*cs_CZ.iso88592.languageName: %|nls-307-##|
Dtlogin*da_DK.iso88591.languageName: %|nls-308-##|
Dtlogin*da_DK.roman8.languageName: %|nls-309-##|
Dtlogin*de_DE.iso8859.languageName: %|nls-310-##|
Dtlogin*de_DE.roman8.languageName: %|nls-311-##|
Dtlogin*el_GR.greek8.languageName: %|nls-312-##|
Dtlogin*el_GR.iso88597.languageName: %|nls-313-##|
Dtlogin*en_GB.iso88591.languageName: %|nls-314-##|
Dtlogin*en_GB.roman8.languageName: %|nls-315-##|
Dtlogin*en_US.iso88591.languageName: %|nls-316-##|
Dtlogin*en_US.roman8.languageName: %|nls-317-##|
Dtlogin*es_ES.iso88591.languageName: %|nls-318-##|
Dtlogin*es_ES.roman8.languageName: %|nls-319-##|
Dtlogin*fi_FI.iso88591.languageName: %|nls-320-##|
Dtlogin*fi_FI.roman8.languageName: %|nls-321-##|
Dtlogin*fr_CA.iso88591.languageName: %|nls-322-##|
Dtlogin*fr_CA.roman8.languageName: %|nls-323-##|
Dtlogin*fr_FR.iso88591.languageName: %|nls-324-##|
Dtlogin*fr_FR.roman8.languageName: %|nls-325-##|
Dtlogin*hu_HU.iso88592.languageName: %|nls-327-##|
Dtlogin*is_IS.iso88591.languageName: %|nls-328-##|
Dtlogin*is_IS.roman8.languageName: %|nls-329-##|
Dtlogin*it_IT.iso88591.languageName: %|nls-330-##|
Dtlogin*it_IT.roman8.languageName: %|nls-331-##|
Dtlogin*iw_IL.hebrew8.languageName: %|nls-332-##|
Dtlogin*iw_IL.iso88598.languageName: %|nls-333-##|
Dtlogin*ja_JP.SJIS.languageName: %|nls-334-##|
Dtlogin*ja_JP.eucJP.languageName: %|nls-335-##|
Dtlogin*ja_JP.kana8.languageName: %|nls-336-##|
Dtlogin*ko_KR.eucKR.languageName: %|nls-337-##|
Dtlogin*nl_NL.iso88591.languageName: %|nls-338-##|
Dtlogin*nl_NL.roman8.languageName: %|nls-339-##|
Dtlogin*no_NO.iso88591.languageName: %|nls-340-##|
Dtlogin*no_NO.roman8.languageName: %|nls-341-##|
Dtlogin*pl_PL.iso88592.languageName: %|nls-342-##|
Dtlogin*pt_PT.iso88591.languageName: %|nls-343-##|
Dtlogin*pt_PT.roman8.languageName: %|nls-344-##|
Dtlogin*ro_RO.iso88592.languageName: %|nls-345-##|
Dtlogin*ru_RU.iso88595.languageName: %|nls-346-##|
Dtlogin*sh_HR.iso88592.languageName: %|nls-347-##|
Dtlogin*sl_SI.iso88592.languageName: %|nls-348-##|
Dtlogin*sv_SE.iso88591.languageName: %|nls-349-##|
Dtlogin*sv_SE.roman8.languageName: %|nls-350-##|
Dtlogin*th_TH.tis620.languageName: %|nls-351-##|
Dtlogin*tr_TR.iso88599.languageName: %|nls-352-##|
Dtlogin*tr_TR.turkish8.languageName: %|nls-353-##|
Dtlogin*zh_CN.hp15CN.languageName: %|nls-354-##|
Dtlogin*zh_TW.big5.languageName: %|nls-355-##|
Dtlogin*zh_TW.ccdc.languageName: %|nls-356-##|
#endif /* __hpux */
#if defined (__osf__)
!!######################################################################
!!
!! LANGUAGE MENU NAME MAPPINGS
\#undef C
Dtlogin*C.languageName: %|nls-400-#C#|
Dtlogin*POSIX.languageName: %|nls-401-#POSIX#|
Dtlogin*ca_ES.ISO8859-1.languageName: %|nls-448-#Catalan#|
Dtlogin*zh_CN.languageName: %|nls-402-#Chinese China#|
Dtlogin*zh_CN.dechanzi.languageName: %|nls-403-#Chinese China (DEC Hanzi)#|
Dtlogin*zh_HK.big5.languageName: %|nls-404-#Chinese Hong Kong (Big 5)#|
Dtlogin*zh_HK.eucTW.languageName: %|nls-405-#Chinese Hong Kong (EUC Taiwan)#|
Dtlogin*zh_HK.dechanyu.languageName: %|nls-406-#Chinese Hong Kong (DEC Hanyu)#|
Dtlogin*zh_HK.dechanzi.languageName: %|nls-407-#Chinese Hong Kong (DEC Hanzi)#|
Dtlogin*zh_TW.languageName: %|nls-408-#Chinese Taiwan#|
Dtlogin*zh_TW.big5.languageName: %|nls-409-#Chinese Taiwan (Big5)#|
Dtlogin*zh_TW.dechanyu.languageName: %|nls-410-#Chinese Taiwan (DEC Hanyu)#|
Dtlogin*zh_TW.eucTW.languageName: %|nls-411-#Chinese Taiwan (EUC)#|
Dtlogin*cs_CZ.ISO8859-2.languageName: %|nls-412-#Czech#|
Dtlogin*da_DK.ISO8859-1.languageName: %|nls-413-#Danish#|
Dtlogin*nl_NL.ISO8859-1.languageName: %|nls-414-#Dutch#|
Dtlogin*nl_BE.ISO8859-1.languageName: %|nls-415-#Dutch Belgian#|
Dtlogin*en_GB.ISO8859-1.languageName: %|nls-416-#English (Great Britain)#|
Dtlogin*en_US.ISO8859-1.languageName: %|nls-417-#English (United States)#|
Dtlogin*fi_FI.ISO8859-1.languageName: %|nls-418-#Finnish#|
Dtlogin*fr_FR.ISO8859-1.languageName: %|nls-419-#French#|
Dtlogin*fr_CA.ISO8859-1.languageName: %|nls-420-#French-Canadian#|
Dtlogin*fr_BE.ISO8859-1.languageName: %|nls-421-#French-Belgian#|
Dtlogin*de_DE.ISO8859-1.languageName: %|nls-422-#German#|
Dtlogin*el_GR.ISO8859-7.languageName: %|nls-423-#Greek#|
Dtlogin*iw_IL.ISO8859-8.languageName: %|nls-424-#Hebrew#|
Dtlogin*hu_HU.ISO8859-2.languageName: %|nls-425-#Hungarian#|
Dtlogin*is_IS.ISO8859-1.languageName: %|nls-426-#Icelandic#|
Dtlogin*it_IT.ISO8859-1.languageName: %|nls-427-#Italian#|
Dtlogin*ja_JP.languageName: %|nls-428-#Japanese#|
Dtlogin*ja_JP.deckanji.languageName: %|nls-429-#Japanese (DEC Kanji)#|
Dtlogin*ja_JP.eucJP.languageName: %|nls-430-#Japanese (EUC)#|
Dtlogin*ja_JP.sdeckanji.languageName: %|nls-431-#Japanese (Super DEC Kanji)#|
Dtlogin*ja_JP.SJIS.languageName: %|nls-432-#Japanese (Shift JIS)#|
Dtlogin*ko_KR.languageName: %|nls-433-#Korean#|
Dtlogin*ko_KR.deckorean.languageName: %|nls-434-#Korean (DEC Korean)#|
Dtlogin*ko_KR.eucKR.languageName: %|nls-435-#Korean (EUC)#|
Dtlogin*lt_LT.ISO8859-4.languageName: %|nls-450-#Lithuanian#|
Dtlogin*no_NO.ISO8859-1.languageName: %|nls-436-#Norwegian#|
Dtlogin*pl_PL.ISO8859-2.languageName: %|nls-437-#Polish#|
Dtlogin*pt_PT.ISO8859-1.languageName: %|nls-438-#Portugese#|
Dtlogin*ru_RU.ISO8859-5.languageName: %|nls-439-#Russian#|
Dtlogin*sk_SK.ISO8859-2.languageName: %|nls-440-#Slovak#|
Dtlogin*sl_SI.ISO8859-2.languageName: %|nls-449-#Slovene#|
Dtlogin*es_ES.ISO8859-1.languageName: %|nls-441-#Spanish#|
Dtlogin*sv_SE.ISO8859-1.languageName: %|nls-442-#Swedish#|
Dtlogin*fr_CH.ISO8859-1.languageName: %|nls-443-#Swiss-french#|
Dtlogin*de_CH.ISO8859-1.languageName: %|nls-444-#Swiss-German#|
Dtlogin*th_TH.languageName: %|nls-445-#Thai#|
Dtlogin*th_TH.TACTIS.languageName: %|nls-446-#Thai (TACTIS)#|
Dtlogin*tr_TR.ISO8859-9.languageName: %|nls-447-#Turkish#|
#endif /* __osf__ */
#if defined (__uxp__)
!!######################################################################
!!
!! LANGUAGE MENU NAME MAPPINGS
#undef C
XCOMM undef C
Dtlogin*C.languageName: %|nls-500-##|
Dtlogin*POSIX.languageName: %|nls-501-##|
Dtlogin*iso_8859_1.languageName: %|nls-502-##|
Dtlogin*ja.languageName: %|nls-503-##|
Dtlogin*ja_JP.languageName: %|nls-504-##|
Dtlogin*ja_JP.EUC.languageName: %|nls-505-##|
Dtlogin*ja_JP.S90.languageName: %|nls-506-##|
Dtlogin*ja_JP.SJIS.languageName: %|nls-507-##|
Dtlogin*ja_JP.U90.languageName: %|nls-508-##|
Dtlogin*ja_JP.eucJP.languageName: %|nls-509-##|
Dtlogin*japan.languageName: %|nls-510-##|
#endif /* __uxp__ */
#if defined (USL)
!!######################################################################
!!
!! LANGUAGE MENU NAME MAPPINGS
#undef C
XCOMM undef C
Dtlogin*C.languageName: %|nls-600-##|
Dtlogin*POSIX.languageName: %|nls-601-##|
Dtlogin*da.languageName: %|nls-602-##|
Dtlogin*da_DK.850.languageName: %|nls-603-##|
Dtlogin*da_DK.865.languageName: %|nls-604-##|
Dtlogin*de.languageName: %|nls-605-##|
Dtlogin*de_DE.437.languageName: %|nls-606-##|
Dtlogin*de_DE.850.languageName: %|nls-607-##|
Dtlogin*de_AT.languageName: %|nls-608-##|
Dtlogin*de_AT.437.languageName: %|nls-609-##|
Dtlogin*de_AT.850.languageName: %|nls-610-##|
Dtlogin*de_CH.languageName: %|nls-611-##|
Dtlogin*de_CH.437.languageName: %|nls-612-##|
Dtlogin*de_CH.850.languageName: %|nls-613-##|
Dtlogin*el.languageName: %|nls-614-##|
Dtlogin*en.languageName: %|nls-615-##|
Dtlogin*en_GB.437.languageName: %|nls-616-##|
Dtlogin*en_GB.646.languageName: %|nls-617-##|
Dtlogin*en_GB.850.languageName: %|nls-618-##|
Dtlogin*en_AU.languageName: %|nls-619-##|
Dtlogin*en_AU.437.languageName: %|nls-620-##|
Dtlogin*en_AU.646.languageName: %|nls-621-##|
Dtlogin*en_AU.850.languageName: %|nls-622-##|
Dtlogin*en_CA.languageName: %|nls-623-##|
Dtlogin*en_CA.437.languageName: %|nls-624-##|
Dtlogin*en_CA.646.languageName: %|nls-625-##|
Dtlogin*en_CA.850.languageName: %|nls-626-##|
Dtlogin*en_IR.languageName: %|nls-627-##|
Dtlogin*en_IR.437.languageName: %|nls-628-##|
Dtlogin*en_IR.850.languageName: %|nls-629-##|
Dtlogin*en_IR.646.languageName: %|nls-630-##|
Dtlogin*en_NZ.languageName: %|nls-631-##|
Dtlogin*en_NZ.437.languageName: %|nls-632-##|
Dtlogin*en_NZ.850.languageName: %|nls-633-##|
Dtlogin*en_NZ.646.languageName: %|nls-634-##|
Dtlogin*en_US.languageName: %|nls-635-##|
Dtlogin*en_US.437.languageName: %|nls-636-##|
Dtlogin*en_US.646.languageName: %|nls-637-##|
Dtlogin*en_US.850.languageName: %|nls-638-##|
Dtlogin*es.languageName: %|nls-639-##|
Dtlogin*es_ES.437.languageName: %|nls-640-##|
Dtlogin*es_ES.850.languageName: %|nls-641-##|
Dtlogin*es_AR.languageName: %|nls-642-##|
Dtlogin*es_AR.437.languageName: %|nls-643-##|
Dtlogin*es_AR.850.languageName: %|nls-644-##|
Dtlogin*es_CL.languageName: %|nls-645-##|
Dtlogin*es_CL.437.languageName: %|nls-646-##|
Dtlogin*es_CL.850.languageName: %|nls-647-##|
Dtlogin*es_MX.languageName: %|nls-648-##|
Dtlogin*es_MX.437.languageName: %|nls-649-##|
Dtlogin*es_MX.850.languageName: %|nls-650-##|
Dtlogin*es_VE.languageName: %|nls-651-##|
Dtlogin*es_VE.437.languageName: %|nls-652-##|
Dtlogin*es_VE.850.languageName: %|nls-653-##|
Dtlogin*fi.languageName: %|nls-654-##|
Dtlogin*fi_FI.437.languageName: %|nls-655-##|
Dtlogin*fi_FI.850.languageName: %|nls-656-##|
Dtlogin*fr.languageName: %|nls-657-##|
Dtlogin*fr_FR.437.languageName: %|nls-658-##|
Dtlogin*fr_FR.850.languageName: %|nls-659-##|
Dtlogin*fr_BE.languageName: %|nls-660-##|
Dtlogin*fr_BE.437.languageName: %|nls-661-##|
Dtlogin*fr_BE.850.languageName: %|nls-662-##|
Dtlogin*fr_CA.languageName: %|nls-663-##|
Dtlogin*fr_CA.850.languageName: %|nls-664-##|
Dtlogin*fr_CA.863.languageName: %|nls-665-##|
Dtlogin*fr_CH.languageName: %|nls-666-##|
Dtlogin*fr_CH.437.languageName: %|nls-667-##|
Dtlogin*fr_CH.850.languageName: %|nls-668-##|
Dtlogin*is.languageName: %|nls-669-##|
Dtlogin*is_IS.850.languageName: %|nls-670-##|
Dtlogin*it.languageName: %|nls-671-##|
Dtlogin*it_IT.437.languageName: %|nls-672-##|
Dtlogin*it_IT.850.languageName: %|nls-673-##|
Dtlogin*it_CH.languageName: %|nls-674-##|
Dtlogin*it_CH.437.languageName: %|nls-675-##|
Dtlogin*it_CH.850.languageName: %|nls-676-##|
Dtlogin*ja.languageName: %|nls-677-##|
Dtlogin*ja_JP.EUC.languageName: %|nls-678-##|
Dtlogin*nl.languageName: %|nls-679-##|
Dtlogin*nl_NL.437.languageName: %|nls-680-##|
Dtlogin*nl_NL.850.languageName: %|nls-681-##|
Dtlogin*nl_BE.languageName: %|nls-682-##|
Dtlogin*nl_BE.437.languageName: %|nls-683-##|
Dtlogin*nl_BE.850.languageName: %|nls-684-##|
Dtlogin*no.languageName: %|nls-685-##|
Dtlogin*no_NO.850.languageName: %|nls-686-##|
Dtlogin*no_NO.865.languageName: %|nls-687-##|
Dtlogin*pt.languageName: %|nls-688-##|
Dtlogin*pt_BR.languageName: %|nls-689-##|
Dtlogin*pt_PT.850.languageName: %|nls-690-##|
Dtlogin*pt_PT.860.languageName: %|nls-691-##|
Dtlogin*sv.languageName: %|nls-692-##|
Dtlogin*sv_SE.437.languageName: %|nls-693-##|
Dtlogin*sv_SE.850.languageName: %|nls-694-##|
#endif /* USL */
!!######################################################################
!!
!! CHOOSER
!!
dtchooser*chlistFont: %|nls-7-#chlistlFont#|
dtchooser*visibleItemCount: 10
!!****************************************************************************
!!
!! CUSTOMIZATION HINTS
!!
!!
!! The login screen was designed to be easy to customize for a variety of
!! attributes. These include...
!!
!! 1. custom logo bitmap
!! 2. custom greeting message
!! 3. colors
!! 4. fonts
!!
!! Users may replace the default logo with a custom one of their choice.
!!
!! Colors and fonts can be changed using the standard Motif resources for
!! the appropriate widget and/or class.

View File

@@ -0,0 +1,116 @@
XCOMM ##########################################################################
XCOMM
XCOMM Xservers
XCOMM
XCOMM Common Desktop Environment
XCOMM
XCOMM Configuration file for all Xservers started or managed by the Login Manager
XCOMM
XCOMM (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
XCOMM (c) Copyright 1993, 1994 Hewlett-Packard Company
XCOMM (c) Copyright 1993, 1994 International Business Machines Corp.
XCOMM (c) Copyright 1993, 1994 Novell, Inc.
XCOMM
XCOMM BEST TO NOT EDIT CDE_INSTALLATION_TOP/config/Xservers directly.
XCOMM
XCOMM CDE_INSTALLATION_TOP/config/Xservers is a factory-default file and will
XCOMM be unconditionally overwritten upon subsequent installation.
XCOMM Before making changes to the file, should copy it to the configuration
XCOMM directory, CDE_CONFIGURATION_TOP/config.
XCOMM
XCOMM $XConsortium: Xservers.src /main/7 1996/08/25 02:01:08 cde-fuj $
XCOMM
XCOMM ##########################################################################
XCOMM
XCOMM This file should contain an entry to start the server on the
XCOMM local display. If you have more than one display (not screen),
XCOMM add entries to the list (one per line).
XCOMM
XCOMM If the local display has an associated character device, it should be
XCOMM specified here also. This allows Dtlogin to correctly monitor that
XCOMM device when [No Windows] mode is selected from the login screen. If
XCOMM no character device is available, then "none" should be specified.
XCOMM
XCOMM By default, the ":0" display is associated with the "/dev/console"
XCOMM character device. If the true console on the system is not the same
XCOMM as the ":0" graphics display, then the appropriate device or "none"
XCOMM should be specified for the ":0" display.
XCOMM
XCOMM If you want multiple-displays running dtlogin then make sure the
XCOMM connection number matches the display name, for example.
XCOMM
XCOMM <HostName>:1 local@none /usr/openwin/bin/X :1 <options>
XCOMM
XCOMM This means the X-server is started on connection number "1" and the
XCOMM display is connecting to the X-server on "1" through display name
XCOMM "LocalHost:1".
XCOMM
XCOMM If you have some X terminals connected which do not support XDMCP,
XCOMM you can add them here as well. Using XDMCP is recommended over
XCOMM entries in this file and should be used whenever possible.
XCOMM
XCOMM Example Syntax, the items between "< >" are optional:
XCOMM
XCOMM <HostName>:0 <class> local@console /usr/openwin/bin/X :0 <options>
XCOMM <HostName>:1 <class> local@none /usr/openwin/bin/X :1 <options>
XCOMM <HostName>:0 <class> local_uid@console <uid> /usr/openwin/bin/X :0 <options>
XCOMM XTermName:0 <class> foreign
XCOMM
XCOMM A "*" in the first field of the entry for a local server
XCOMM will be expanded to "<hostname>:0" by Dtlogin. This
XCOMM syntax is valid only within this file.
XCOMM
XCOMM * Local local@console /usr/openwin/bin/Xsun :0
XCOMM
XCOMM If the display type of "local_uid" is used, a user name such as "root"
XCOMM must follow in next field. In this example, by placing "root" here,
XCOMM Login will start a local Xserver under the user id of "root". On Sun
XCOMM system's this will give Xserver the ability to raise interactive
XCOMM scheduling priority of a client with mouse/keyboard focus to increase
XCOMM performance of the application.
XCOMM
XCOMM :0 Local local_uid@console root /usr/openwin/bin/Xsun :0
XCOMM
XCOMM In limited situations, the Xserver should not be run under a "root" id
XCOMM for security reasons. Examples are usually specific to Xserver extensions.
XCOMM On Sun Xservers one example involves the Display Postscript extension.
XCOMM If the DPS extension is granted access (via Xserver option line) to read
XCOMM and write Unix files via the "-dpsfileops" option (see Xsun man page) it
XCOMM should not be run under a "root" user id. For increaseced security,
XCOMM could instead run it as the "nobody" user.
XCOMM
XCOMM :0 Local local_uid@console nobody /usr/openwin/bin/Xsun :0 -dpsfileops
XCOMM
XCOMM Another options of interest here for Sun's Xserver is how to start on
XCOMM two or more screens. A two screen example follows.
XCOMM
XCOMM :0 Local local_uid@console root /usr/openwin/bin/X -dev /dev/fb0 -dev /dev/fb1
XCOMM
XCOMM See the Xsun.1 and Xserver.1 man pages for additional options of
XCOMM interest.
XCOMM
XCOMM ##########################################################################
#if defined (__apollo)
* Local local /etc/Xdomain :0
#elif defined (_AIX) && defined (AIXV4)
:0 Local local@console /usr/lpp/X11/defaults/xserverrc -T -force :0
#elif defined (_AIX)
:0 Local local@console /usr/bin/X11/X -T -force :0
#elif defined (sun)
:0 Local local_uid@console root /usr/openwin/bin/Xsun :0 -nobanner
#elif defined (__osf__)
#if defined (_NO_CONSOLE)
XCOMM * Local local_uid@console root /usr/bin/X11/X :0 -nice -2
#else
:0 Local local_uid@console root /usr/bin/X11/X :0 -nice -2
#endif
#elif defined (__hpux)
* Local local@console /usr/bin/X11/X :0
#elif defined (_NO_CONSOLE)
XCOMM * Local local@console /usr/bin/X11/X :0
#elif defined (__uxp__)
:0 Local local@console /usr/bin/X11/X :0
#else
* Local local@console /usr/bin/X11/X :0
#endif

View File

@@ -0,0 +1,48 @@
XCOMM!/bin/ksh
XCOMM $XConsortium: Xsession.ow.src /main/3 1996/11/19 11:41:19 drk $
XCOMM ####################################################################
XCOMM ## File: Xsession.ow
XCOMM ##
XCOMM ## Default Location: /usr/dt/config/Xsession.ow
XCOMM ##
XCOMM ## Purpose: OpenWindows session start script
XCOMM ##
XCOMM ## Invoked by: Solaris Desktop Login Manager (dtlogin)
XCOMM ##
XCOMM ## Revision: @(#)Xsession.ow.src 1.4 95/08/10
XCOMM ##
XCOMM ## (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
XCOMM ##
XCOMM ####################################################################
DTDSPMSG=/usr/dt/bin/dtdspmsg
if [ -z "$SESSIONTYPE" ]
then
export SESSIONTYPE="altDt"
fi
if [ -z "$DTSTARTIMS" ]
then
export DTSTARTIMS="False"
fi
if [ -z "$SDT_ALT_SESSION" ]
then
export SDT_ALT_SESSION="/usr/dt/config/Xsession.ow2"
fi
if [ -z "$SDT_ALT_HELLO" ]
then
if [ -x $DTDSPMSG ]; then
export SDT_ALT_HELLO="/usr/dt/bin/dthello -string '`$DTDSPMSG -s 37 /usr/dt/lib/nls/msg/$LANG/dthello.cat 1 'Starting the OpenWindows Desktop'`' &"
else
export SDT_ALT_HELLO="/usr/dt/bin/dthello -string 'Starting the OpenWindows Desktop' &"
fi
fi
export SDT_NO_DSDM=""
/usr/dt/bin/Xsession

View File

@@ -0,0 +1,52 @@
XCOMM!/bin/ksh
XCOMM $XConsortium: Xsession.ow2.src /main/3 1996/11/19 11:41:57 drk $
XCOMM ####################################################################
XCOMM ## File: Xsession.ow2
XCOMM ##
XCOMM ## Default Location: /usr/dt/config/Xsession.ow2
XCOMM ##
XCOMM ## Purpose: OpenWindows Desktop start script
XCOMM ##
XCOMM ## Invoked by: /usr/dt/bin/Xsession
XCOMM ##
XCOMM ## Revision: @(#)Xsession.ow2.src 1.3 95/02/16
XCOMM ##
XCOMM ## (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
XCOMM ##
XCOMM ####################################################################
XCOMM First a little namespace cleanup of vars associated with this
XCOMM (and /usr/dt/bin/Xsession.ow) scripts.
unset SDT_ALT_SESSION
unset SDT_ALT_HELLO
unset SDT_NO_DSDM
XCOMM
XCOMM Find "xinitrc" file by standard precedence rules and start
XCOMM the user's OpenWindows Desktop.
XCOMM
DEFAULT_XINITRC="/usr/openwin/lib/Xinitrc"
HOME_XINITRC="$HOME/.xinitrc"
if [ -z "$XINITRC" ]; then
if [ -f $HOME_XINITRC ]; then
XINITRC=$HOME_XINITRC
else
XINITRC=$DEFAULT_XINITRC
fi
fi
echo "OpenWindows Desktop Login"
if [ -f $XINITRC ]; then
echo "using xinitrc file: $XINITRC"
/bin/ksh $XINITRC
else
echo "xinitrc file: $XINITRC not found"
if [ -f $DEFAULT_XINITRC ]; then
echo "using xinitrc: $DEFAULT_XINITRC"
/bin/ksh $DEFAULT_XINITRC
fi
fi

View File

@@ -0,0 +1,603 @@
XCOMM! /bin/ksh
XCOMM ##########################################################################
XCOMM
XCOMM Xsession
XCOMM
XCOMM Common Desktop Environment (CDE)
XCOMM
XCOMM Configuration script for the Login Manager
XCOMM
XCOMM (c) Copyright 1996 Digital Equipment Corporation.
XCOMM (c) Copyright 1993,1994,1996 Hewlett-Packard Company.
XCOMM (c) Copyright 1993,1994,1996 International Business Machines Corp.
XCOMM (c) Copyright 1993,1994,1996 Sun Microsystems, Inc.
XCOMM (c) Copyright 1993,1994,1996 Novell, Inc.
XCOMM (c) Copyright 1996 FUJITSU LIMITED.
XCOMM (c) Copyright 1996 Hitachi.
XCOMM
XCOMM ************** DO NOT EDIT THIS FILE **************
XCOMM
XCOMM CDE_INSTALLATION_TOP/bin/Xsession is a factory-default file and will
XCOMM be unconditionally overwritten upon subsequent installation.
XCOMM Modification is discouraged.
XCOMM
XCOMM $TOG: Xsession.src /main/19 1999/03/30 09:38:50 mgreess $
XCOMM
XCOMM Usage: $0 [-session session_name]
XCOMM
XCOMM ##########################################################################
#define HASH #
#ifdef sun
HASH
HASH Set OPENWINHOME
HASH
if [ -z "$OPENWINHOME" ]
then
export OPENWINHOME="/usr/openwin"
fi
#endif
#if 0
/*
* Platform specific definitions
*
* cpp_XINITUSER - user's xinit startup file
* cpp_MAIL - system mail file
* cpp_HELLO - dthello command line
* cpp_XDMSYS - xdm system session file
*/
#endif
#if defined (_AIX)
# define cpp_XINITUSER "$HOME/.xinitrc"
# define cpp_MAIL "/var/spool/mail/$USER"
#elif defined (__hpux)
# define cpp_XDMSYS "/usr/lib/X11/xdm/sys.xsession"
#elif defined (sun)
# define cpp_MAIL "/var/mail/$USER"
#endif
#ifdef __osf__
# undef cpp_MAIL
# define cpp_MAIL "/usr/spool/mail/$USER"
#endif
#if defined (__hpux) && defined (BLS)
# undef cpp_HELLO
# define cpp_HELLO "$DT_BINPATH/dthello -file /etc/copyright -file $HOME/.dtlogininfo &"
#endif
#if 0
/*
* Fallback definitions
*/
#endif
#if !defined (cpp_XINITUSER)
# define cpp_XINITUSER "$HOME/.x11start"
#endif
#if !defined (cpp_MAIL)
# define cpp_MAIL "/usr/mail/$USER"
#endif
#if !defined (cpp_HELLO)
# define cpp_HELLO "$DT_BINPATH/dthello &"
#endif
#if !defined (cpp_XDMSYS)
# define cpp_XDMSYS "/usr/lib/X11/xdm/Xsession"
#endif
XCOMM ##########################################################################
XCOMM
XCOMM
XCOMM This script starts the user's session. It searches for one of three
XCOMM types of startup mechanisms, in the following order:
XCOMM
XCOMM DT existence of CDE DT Session Manager on the system
XCOMM XDM "$HOME/.xsession" (executable)
XCOMM xinit cpp_XINITUSER (executable)
XCOMM
XCOMM If none of these startup mechanisms exist, a default window manager
XCOMM and terminal emulator client are started.
XCOMM
XCOMM ##########################################################################
XCOMM
XCOMM Variables must be explicitly exported
XCOMM
set +a
XCOMM ##########################################################################
XCOMM
XCOMM Initialize session startup logging
XCOMM
XCOMM ##########################################################################
exec >/dev/null 2>/dev/null
LOGDIR=$HOME/.dt
LOGFILENAME=$LOGDIR/startlog
MSGLOGFILENAME=$LOGDIR/errorlog
if [ ! -d $LOGDIR ]; then
mkdir $LOGDIR
if [ -d $LOGDIR ]; then
chmod 755 $LOGDIR
fi
fi
[ -f $LOGFILENAME.older ] && rm -f $LOGFILENAME.older
[ -f $LOGFILENAME.old ] && mv -f $LOGFILENAME.old $LOGFILENAME.older
[ -f $LOGFILENAME ] && mv -f $LOGFILENAME $LOGFILENAME.old
touch $LOGFILENAME
[ ! -f $MSGLOGFILENAME ] && touch $MSGLOGFILENAME
if [ -w $LOGFILENAME ]; then
exec >>$LOGFILENAME 2>&1
fi
Log()
{
echo "--- $1" >>$LOGFILENAME 2>&1
}
Log "$(date)"
Log "$0 starting..."
XCOMM ##########################################################################
XCOMM
XCOMM Global environment section
XCOMM
XCOMM DT pre-sets the following environment variables for each user.
XCOMM
XCOMM (internal)
XCOMM
XCOMM DISPLAY set to the value of the first field in the Xservers file.
XCOMM HOME set to the user's home directory (from /etc/passwd)
XCOMM LANG set to the display's current NLS language (if any)
XCOMM LC_ALL set to the value of $LANG
XCOMM LOGNAME set to the user name
XCOMM PATH set to the value of the Dtlogin "userPath" resource
XCOMM USER set to the user name
XCOMM SHELL set to the user's default shell (from /etc/passwd)
XCOMM TZ set to the value of the Dtlogin "timeZone" resource
XCOMM
XCOMM
XCOMM (Xsession)
XCOMM
XCOMM TERM set to xterm
XCOMM EDITOR set to the default editor
XCOMM KBD_LANG set to the value of $LANG for certain languages
XCOMM MAIL set to cpp_MAIL
XCOMM
XCOMM
XCOMM Three methods are available to modify or add to this list depending
XCOMM on the desired scope of the resulting environment variable.
XCOMM
XCOMM 1. X server and/or all users on a display (Xconfig file)
XCOMM 2. all users on a display (Xsession file)
XCOMM 3. individual users (.dtprofile file)
XCOMM
XCOMM See DT on-line help, the DT Users Guide, or the Dtlogin(1X) man
XCOMM page for details on setting environment variables.
XCOMM
XCOMM
XCOMM ##########################################################################
[ -z "$EDITOR" ] && EDITOR=CDE_INSTALLATION_TOP/bin/dtpad
[ -z "$MAIL" ] && MAIL=cpp_MAIL
[ -z "$LANG" ] && LANG="C"
TERM=dtterm
SESSION_SVR=`hostname`
export PATH EDITOR MAIL TERM SESSION_SVR LANG
#if defined (_AIX) && defined (AIXV4)
XCOMM
XCOMM Clear the LFT message locale override if set
XCOMM
if [ "$LC_MESSAGES" = "C@lft" ]
then
unset LC_MESSAGES
fi
#endif
#if defined (__osf__)
HASH
HASH Set XFILESEARCHPATH if necessary
HASH
if [ -z "$XFILESEARCHPATH" ]
then
export XFILESEARCHPATH="%D"
fi
HASH
HASH check if network is configured. If not, set environment variable
HASH so that tooltalk will use localhost/loopback rather than system
HASH name
RCMGR=/usr/sbin/rcmgr
NUM_NETCONFIG=`$RCMGR get NUM_NETCONFIG`
if [ "$NUM_NETCONFIG" = '' -o "$NUM_NETCONFIG" = 0 ]; then
export DTNONETWORK=true
fi
#endif
#if defined (__hpux)
HASH
HASH Set the keyboard language if necessary...
HASH
if [ ! -z "$LANG" ]
then
case $LANG in
bulgarian | czech | hebrew | hungarian | \
japanese | korean | polish | rumanian | \
russian | serbocroatian)
KBD_LANG=$LANG
export KBD_LANG;;
chinese-t) KBD_LANG=t_chinese
export KBD_LANG;;
chinese-s) KBD_LANG=s_chinese
export KBD_LANG;;
*);;
esac
fi
#endif
HASH
HASH Locate configuration file directories
HASH
XDIR=XPROJECTROOT/bin
DT_BINPATH=CDE_INSTALLATION_TOP/bin
DT_INSTALL_CONFIG=CDE_INSTALLATION_TOP/config
DT_CONFIG=CDE_CONFIGURATION_TOP/config
DT_CONFIG_PATH="$DT_INSTALL_CONFIG $DT_CONFIG"
XCOMM ##########################################################################
XCOMM
XCOMM Default desktop component configuration variable settings
XCOMM
XCOMM This section sets the default value for variables controlling
XCOMM some desktop components.
XCOMM
XCOMM ##########################################################################
HASH
HASH Input method server startup
HASH
if [ -z "$DTSTARTIMS" ]; then
DTSTARTIMS=True
fi
if [ "$DTSTARTIMS" = "False" ]; then
unset DTSTARTIMS
fi
HASH
HASH Default desktop screen saver action list
HASH
export DTSCREENSAVERLIST="StartDtscreenSwarm StartDtscreenQix \
StartDtscreenFlame StartDtscreenHop StartDtscreenImage StartDtscreenLife \
StartDtscreenRotor StartDtscreenPyro StartDtscreenWorm StartDtscreenBlank"
HASH
HASH Session startup clients and args
HASH
if [ "$SESSIONTYPE" = "altDt" ]; then
dtstart_session[0]="$SDT_ALT_SESSION"
dtstart_hello[0]="$SDT_ALT_HELLO"
else
DTSESSION_ARGS=""
if [ $# -ge 2 ]; then
if [ "$1" = "-session" ]; then
DTSESSION_ARGS="$1 $2"
fi
fi
dtstart_session[0]="$DT_BINPATH/dtsession $DTSESSION_ARGS"
dtstart_hello[0]=cpp_HELLO
fi
dtstart_session[1]="$HOME/.xsession"
dtstart_session[2]=cpp_XINITUSER
dtstart_session[3]="$XDIR/xterm -geometry 80x24+10+10"
dtstart_hello[1]="$XDIR/xsetroot -default &"
dtstart_searchpath="$DT_BINPATH/dtsearchpath -ksh"
dtstart_ttsession="$DT_BINPATH/ttsession -s"
dtstart_dtdbcache="$DT_BINPATH/dtdbcache -init"
HASH
HASH dtdbcache file's directory should match
HASH _DTDTSMMTEMPDIR in DtSvc/DtUtil1/DtsMM.h
HASH
#ifdef __osf__
dtdbcacherm="rm -f /var/tmp/dtdbcache_$DISPLAY"
#else
dtdbcacherm="rm -f /tmp/dtdbcache_$DISPLAY"
#endif
dtstart_appgather="$DT_BINPATH/dtappgather &"
#if defined(USL) || defined(sun) || defined(__uxp__)
dtstart_dsdm="$DT_BINPATH/dsdm &"
#endif
xdmstart_session[0]="$HOME/.xsession"
xdmstart_session[1]=cpp_XDMSYS
xdmstart_session[2]="xterm -geometry 80x24+10+10 -ls"
xdmstart_hello="$XDIR/xsetroot -default &"
SESSIONLOGDIR=$LOGDIR/sessionlogs
SESSIONLOGFILENAME="$SESSIONLOGDIR/$SESSION_SVR"_DISPLAY=$DISPLAY
if [ ! -d $SESSIONLOGDIR ]; then
mkdir $SESSIONLOGDIR
if [ -d $SESSIONLOGDIR ]; then
chmod 755 $SESSIONLOGDIR
fi
fi
touch $SESSIONLOGFILENAME
if [ -w $SESSIONLOGFILENAME ]; then
dtstart_sessionlogfile="$SESSIONLOGFILENAME"
else
dtstart_sessionlogfile="/dev/null"
fi
rm -f $SESSIONLOGFILENAME
#ifdef sun
if [ "$DTXSERVERLOCATION" != "remote" ]
then
HASH
HASH Start fallback console
HASH
if [ -x $XDIR/fbconsole ]
then
$XDIR/fbconsole &
fi
fi
#endif
#define cpp_Xsession
#include "_common.ksh.src"
#undef cpp_Xsession
#if defined (__osf__)
XCOMM
XCOMM Bring up the sysman checklist if it hasn't been run before
XCOMM
if [ -f /usr/sbin/start_checklist ]
then
Log "Starting the checklist setup"
/usr/sbin/start_checklist&
fi
#endif
XCOMM ##########################################################################
XCOMM
XCOMM Source user's desktop profile
XCOMM
XCOMM This section determines if the user has a desktop profile in their
XCOMM home directory. If not, the desktop default profile is copied to
XCOMM the home directory. The desktop profile is then sourced. The purpose
XCOMM is to incorporate any per-user/per-session environment customizations
XCOMM and thereby propagate them to applications and desktop components.
XCOMM
XCOMM ##########################################################################
DTSYSPROFILE=sys.dtprofile
DTPROFILE=.dtprofile
if [ ! -f $HOME/$DTPROFILE ]; then
for i in $DT_CONFIG_PATH
do
if [ -f $i/$DTSYSPROFILE ]; then
/usr/bin/awk '
BEGIN {printit=1}
/SYSPROFILE COMMENT START/ {printit=0; next}
/SYSPROFILE COMMENT END/ {printit=1; next}
printit==1 {print}' <$i/$DTSYSPROFILE >$HOME/$DTPROFILE
/bin/chmod 755 $HOME/$DTPROFILE
break
fi
done
fi
HASH
HASH source the .dtprofile.
HASH
if [ -f $HOME/$DTPROFILE ]; then
dtprofile_errors=`/bin/ksh -n $HOME/$DTPROFILE 2>&1`
if [ "0" = "$?" ]; then
Log "sourcing $HOME/$DTPROFILE..."
. $HOME/$DTPROFILE
else
Log "not sourcing $HOME/$DTPROFILE due to errors..."
Log "$dtprofile_errors"
fi
fi
XCOMM ##########################################################################
XCOMM
XCOMM External Xsession processing section
XCOMM
XCOMM This section searches the Xsession.d subdirectory and sources
XCOMM the files contained therein. The purpose is to set up any
XCOMM per-user/per-session environment customizations and thereby propagate
XCOMM them to applications and desktop components.
XCOMM
XCOMM ##########################################################################
DT_XSESSION_DIR=Xsession.d
for i in $DT_CONFIG_PATH
do
if [[ -d $i/$DT_XSESSION_DIR ]]; then
HASH
HASH Run custom Xsession scripts for this session.
HASH
for SCRIPT in $(ls $i/$DT_XSESSION_DIR); do
if [ -x $i/$DT_XSESSION_DIR/$SCRIPT -a \
\( ! -d $i/$DT_XSESSION_DIR/$SCRIPT \) ]; then
Log "sourcing $i/$DT_XSESSION_DIR/$SCRIPT..."
. $i/$DT_XSESSION_DIR/$SCRIPT
fi
done
fi
done
XCOMM ##########################################################################
XCOMM
XCOMM Startup section.
XCOMM
XCOMM Note: The ksh syntax ${parameter%% *} is used when appropriate to
XCOMM remove any command line options that may have been included
XCOMM in the definition of a DT executable below.
XCOMM
XCOMM ##########################################################################
XCOMM
XCOMM Return first command in array named by $1 that is executable
XCOMM
GetFirst()
{
let i=0
while true; do
eval "cmd=\${$1[$i]}"
[ -z "$cmd" ] && break
[ -x "${cmd%% *}" ] && echo "$cmd" && break
Log "could not start $cmd"
let i=$i+1
done
}
XCOMM
XCOMM Start first command in array named by $1 that is executable. If
XCOMM $2 is 'eval', command result will be 'eval'ed.
XCOMM
StartFirst()
{
first=$(GetFirst $1)
if [ ! -z "$first" ]; then
Log "starting $first"
if [ "$2" = "eval" ]; then
eval `eval "PATH=$DT_BINPATH:$PATH $first"`
else
eval "PATH=$DT_BINPATH:$PATH $first"
fi
fi
}
HASH
HASH Prepare for session startup
HASH
if [ "$DTSOURCEPROFILE" = "true" ]
then
case ${SHELL##*/} in
sh | ksh | dtksh) shellprofile="$HOME/.profile";;
bash) shellprofile="$HOME/.bash_profile";;
csh | tcsh) shellprofile="$HOME/.login";;
*) Log "non-standard shell $SHELL"
esac
fi
if [ "$shellprofile" -a ! -f "$shellprofile" ]
then
Log "could not read $shellprofile"
unset shellprofile
fi
if [ "$SESSIONTYPE" = "xdm" ]; then
startup=$(GetFirst xdmstart_session) # get xdm session client
StartFirst xdmstart_hello # start xdm hello client
else
startup=$(GetFirst dtstart_session) # get desktop session client
StartFirst dtstart_hello # start desktop hello client
StartFirst dtstart_searchpath eval # setup desktop search paths
tooltalk=$(GetFirst dtstart_ttsession) # get tooltalk client
dtdbcache=$(GetFirst dtstart_dtdbcache) # get dtdbcache client
#if defined(USL) || defined(sun) || defined(__uxp__)
if [ -z "$SDT_NO_DSDM" ]; then
StartFirst dtstart_dsdm # start drag and drop proxy
fi
#endif
StartFirst dtstart_appgather # setup session applications
fi
HASH
HASH Start the session.
HASH
if [ $shellprofile ]; then
Log "execing $startup using $shellprofile..."
case ${SHELL##*/} in
sh | bash | ksh | dtksh)
dotprofile_errors=`$SHELL -n $shellprofile 2>&1`
if [ "0" = "$?" ]; then
source_profile=". $shellprofile"
source_login="source $shellprofile"
else
Log "parse errors found in $shellprofile..."
Log "$dotprofile_errors"
source_profile="echo 'not execing $shellprofile due to errors'"
source_login="echo 'not execing $shellprofile due to errors'"
fi;;
*)
source_profile=". $shellprofile"
source_login="source $shellprofile";;
esac
else
Log "execing $startup..."
source_profile="echo 'not execing $HOME/.profile (see $HOME/.dtprofile)'"
source_login="echo 'not execing $HOME/.login (see $HOME/.dtprofile)'"
fi
if [ -z "$dtdbcache" ]; then
dtdbcache="echo could not start $dtstart_dtdbcache"
fi
export DT=true;
case ${SHELL##*/} in
sh | bash) $SHELL -c "$source_profile; \
unset DT; \
$dtdbcache; \
PATH=/usr/dt/bin:\$PATH $tooltalk; \
$startup > $dtstart_sessionlogfile 2>&1" ;;
ksh | dtksh) $SHELL -c "$source_profile; \
unset DT; \
$dtdbcache; \
PATH=/usr/dt/bin:\$PATH $tooltalk;\
$startup >| $dtstart_sessionlogfile 2>&1" ;;
csh | tcsh) $SHELL -c "unsetenv _ PWD; \
$source_login; \
unsetenv DT; \
$dtdbcache; \
(set path = ( $DT_BINPATH \$path ); $tooltalk ); \
$startup >&! $dtstart_sessionlogfile" ;;
*) unset DT
$dtdbcache
StartFirst dtstart_ttsession
$startup >| $dtstart_sessionlogfile 2>&1 ;;
esac
$dtdbcacherm # remove the actions/datatypes cachefile
XCOMM #################### eof #################################

View File

@@ -0,0 +1,74 @@
XCOMM!/bin/ksh
XCOMM $XConsortium: Xsetup.src /main/8 1996/07/02 11:40:32 mgreess $
XCOMM ##########################################################################
XCOMM
XCOMM Common Desktop Environment
XCOMM
XCOMM (c) Copyright 1993, 1994 Hewlett-Packard Company
XCOMM (c) Copyright 1993, 1994 International Business Machines Corp.
XCOMM (c) Copyright 1993, 1994 Sun Microsystems, Inc.
XCOMM (c) Copyright 1993, 1994 Novell, Inc.
XCOMM
XCOMM ************** DO NOT EDIT THIS FILE **************
XCOMM
XCOMM CDE_INSTALLATION_TOP/config/Xsetup is a factory-default file and will
XCOMM be unconditionally overwritten upon subsequent installation.
XCOMM Before making changes to the file, copy it to the configuration
XCOMM directory, CDE_CONFIGURATION_TOP/config. You must also update the setup
XCOMM resource in CDE_CONFIGURATION_TOP/config/Xconfig.
XCOMM
XCOMM ##########################################################################
#if defined (_AIX)
XCOMM
XCOMM List of displays and keyboard languages
XCOMM
XCOMM This list is used to determine the keyboard language mapping for a
XCOMM particular X station. Each item in the list is a display name
XCOMM followed by a locale name to use for that display's keyboard
XCOMM language mapping. To add a new mapping, simply add a new item to
XCOMM the list. For example, if you have displays named chili:0, carp:0
XCOMM and pecos:0 with japanese, french and german keyboards, respectively,
XCOMM your KBD_MAP list would be:
XCOMM
XCOMM KBD_MAP[0]="chili:0 Ja_JP"
XCOMM KBD_MAP[1]="carp:0 Fr_FR"
XCOMM KBD_MAP[2]="pecos:0 Gr_GR"
XCOMM
XCOMM
KBD_MAP[0]=""
#endif
XCOMM ##########################################################################
XCOMM
XCOMM Directory specifications
XCOMM
XCOMM ##########################################################################
#if defined (_AIX) && defined (AIXV4)
XCOMM
XCOMM Wait for boot sequence to end (if booting)
XCOMM
if [ "$LOCATION" != "remote" ]; then
/usr/sbin/rc.bootx
fi
#endif
#ifdef sun
XDIR=/usr/openwin/bin
#else
XDIR=/usr/bin/X11
#endif
#define cpp_Xsetup
#include "_common.ksh.src"
#undef cpp_Xsetup
#ifdef sun
if [ ! -f /etc/pam.conf ]; then
if [ -f /usr/dt/config/sys.pam.conf ]; then
/bin/cp /usr/dt/config/sys.pam.conf /etc/pam.conf
/bin/chmod 644 /etc/pam.conf
fi
fi
#endif

View File

@@ -0,0 +1,66 @@
XCOMM! /bin/ksh
XCOMM ##########################################################################
XCOMM
XCOMM Xstartup
XCOMM
XCOMM Common Desktop Environment (CDE)
XCOMM
XCOMM Configuration file for the Login Manager
XCOMM
XCOMM (c) Copyright 1993, 1994 Hewlett-Packard Company
XCOMM (c) Copyright 1993, 1994 International Business Machines Corp.
XCOMM (c) Copyright 1993, 1994 Sun Microsystems, Inc.
XCOMM (c) Copyright 1993, 1994 Novell, Inc.
XCOMM
XCOMM ************** DO NOT EDIT THIS FILE **************
XCOMM
XCOMM CDE_INSTALLATION_TOP/config/Xstartup is a factory-default file and will
XCOMM be unconditionally overwritten upon subsequent installation.
XCOMM Before making changes to the file, copy it to the configuration
XCOMM directory, CDE_CONFIGURATION_TOP/config. You must also update the startup
XCOMM resource in CDE_CONFIGURATION_TOP/config/Xconfig.
XCOMM
XCOMM $XConsortium: Xstartup.src /main/6 1996/08/15 16:52:10 rswiston $
XCOMM
XCOMM This file is typically a shell script. It is run as "root" and should be
XCOMM very careful about security. This is the place to put commands that
XCOMM display the message of the day or do other system-level functions on
XCOMM behalf of the user. The following are the environment variables set for
XCOMM use in the script:
XCOMM
XCOMM DISPLAY, HOME, PATH, USER, SHELL, TZ (timeZone)
XCOMM
XCOMM System Administrators are encouraged to use this file as a base to run
XCOMM system-wide initialization commands with good security.
XCOMM
XCOMM ##########################################################################
XCOMM
XCOMM This script is run as root after the user is verified...
XCOMM
XCOMM dtdbcache file's directory should match
XCOMM _DTDTSMMTEMPDIR in DtSvc/DtUtil1/DtsMM.h
#ifdef __osf__
DTDBFILE=/var/tmp/dtdbcache_$DISPLAY
#else
DTDBFILE=/tmp/dtdbcache_$DISPLAY
#endif
if [ -f $DTDBFILE ]
then
/bin/rm -f $DTDBFILE
fi
if [ "$DTXSERVERLOCATION" = "local" ]
then
if [[ ! -z "$ITE" && "$ITE" != "??" && -a "/dev/$ITE" ]]
then
/bin/chown $USER /dev/$ITE
/bin/chgrp $USER_GID /dev/$ITE
fi
fi

View File

@@ -0,0 +1,469 @@
#if 0
/*
* _common.ksh.src
*
* Common Desktop Environment (CDE)
*
* Common code for dtlogin config scripts
*
* (c) Copyright 1996 Digital Equipment Corporation.
* (c) Copyright 1993,1994,1996 Hewlett-Packard Company.
* (c) Copyright 1993,1994,1996 International Business Machines Corp.
* (c) Copyright 1993,1994,1996 Sun Microsystems, Inc.
* (c) Copyright 1993,1994,1996 Novell, Inc.
* (c) Copyright 1996 FUJITSU LIMITED.
* (c) Copyright 1996 Hitachi.
* (c) Copyright 1997, The Open Group.
*
* $TOG: _common.ksh.src /main/12 1998/05/13 17:48:34 rafi $
*/
#endif
#define HASH #
#if 0
/*
* Note: this file is included by Xsession.src and Xsetup.src. If
* Xsession is being built, cpp_Xsession will be defined. If Xsetup
* is being built, cpp_Xsetup will be defined.
*/
#endif
#ifdef cpp_Xsession
HASH
HASH Determine Xsession parent
HASH
#if defined (__osf__)
pexec=$(LC_TIME=C ps -p $PPID | awk 'NR==2 {print $5}')
#elif defined(USL) && (OSMAJORVERSION > 1)
pexec=$(LC_TIME=C ps -p $PPID | awk 'NR==2 {print $6}')
#else
pexec=$(LC_TIME=C /usr/bin/ps -p $PPID | awk 'NR==2 {print $4}')
#endif
Log "Xsession started by $pexec"
#endif
XCOMM ##########################################################################
XCOMM
XCOMM Append desktop font aliases to font path
XCOMM
XCOMM ##########################################################################
#if defined(sun)
ADDFONTPATH() {
HASH Combine lines together to make arguments for the xset command
FP=`awk '
BEGIN { fp="fp+ " }
/^[ ]*$/ { fp=" +fp " ; continue }
{ printf("%s%s", fp, $0) ; fp="," } ' $1`
if [ -n "$FP" ]; then
#ifdef cpp_Xsession
Log "setting auxiliary font path..."
#endif
eval "xset $FP"
fi
}
#endif /* sun */
#ifdef cpp_Xsession
if [ "${pexec##*/}" != "dtlogin" ]; then
HASH
HASH If Xsession launched by dtlogin, it is assumed that the desktop
HASH font path has already been added by Xsetup, so no need to add it here.
HASH
#endif
#if defined (sun)
if [ -r $OPENWINHOME/lib/locale/${LANG-C}/OWfontpath ]; then
ADDFONTPATH $OPENWINHOME/lib/locale/${LANG-C}/OWfontpath
fi
HASH
HASH Switch Sun's Alt and Meta mod mappings to work with Motif
HASH
if $XDIR/xmodmap | /bin/grep mod4 | /bin/grep Alt > /dev/null 2>/dev/null
then
$XDIR/xmodmap -e "clear Mod1" \
-e "clear Mod4" \
-e "add Mod1 = Alt_L" \
-e "add Mod1 = Alt_R" \
-e "add Mod4 = Meta_L" \
-e "add Mod4 = Meta_R"
fi
#endif /* sun */
HASH
HASH Append desktop font paths. Note: these directories should be
HASH accessable by the X server. The file precedence is:
HASH
HASH CDE_CONFIGURATION_TOP/config/xfonts/$LANG
HASH CDE_INSTALLATION_TOP/config/xfonts/$LANG
HASH CDE_CONFIGURATION_TOP/config/xfonts/C
HASH CDE_INSTALLATION_TOP/config/xfonts/C
HASH
#ifdef cpp_Xsession
Log "setting font path..."
#endif
#if defined (_AIX)
if [ "$DTXSERVERLOCATION" != "remote" -a -z "$XSTATION" ]; then
#else
if [ "$DTXSERVERLOCATION" != "remote" ]; then
#endif
HASH
HASH Since X server is local, optimize by checking local desktop
HASH font directories and making one call to xset.
HASH
if [ "${LANG-C}" != "C" ]; then
if [ -f CDE_CONFIGURATION_TOP/config/xfonts/$LANG/fonts.dir ]; then
fontpath=CDE_CONFIGURATION_TOP/config/xfonts/$LANG
fi
if [ -f CDE_INSTALLATION_TOP/config/xfonts/$LANG/fonts.dir ]; then
if [ -z "$fontpath" ]; then
fontpath=CDE_INSTALLATION_TOP/config/xfonts/$LANG
else
fontpath=$fontpath,CDE_INSTALLATION_TOP/config/xfonts/$LANG
fi
fi
fi
if [ -f CDE_CONFIGURATION_TOP/config/xfonts/C/fonts.dir ]; then
if [ -z "$fontpath" ]; then
fontpath=CDE_CONFIGURATION_TOP/config/xfonts/C
else
fontpath=$fontpath,CDE_CONFIGURATION_TOP/config/xfonts/C
fi
fi
if [ -f CDE_INSTALLATION_TOP/config/xfonts/C/fonts.dir ]; then
if [ -z "$fontpath" ]; then
fontpath=CDE_INSTALLATION_TOP/config/xfonts/C
else
fontpath=$fontpath,CDE_INSTALLATION_TOP/config/xfonts/C
fi
fi
if [ ! -z "$fontpath" ]; then
$XDIR/xset fp+ $fontpath
fi
else
HASH
HASH Since X server not local, we don't know if the desktop font
HASH directories exist on the X server machine, so we have to
HASH set them one at a time.
HASH
if [ "${LANG-C}" != "C" ]; then
$XDIR/xset fp+ CDE_CONFIGURATION_TOP/config/xfonts/$LANG 1>/dev/null
$XDIR/xset fp+ CDE_INSTALLATION_TOP/config/xfonts/$LANG 1>/dev/null
fi
$XDIR/xset fp+ CDE_CONFIGURATION_TOP/config/xfonts/C 1>/dev/null
$XDIR/xset fp+ CDE_INSTALLATION_TOP/config/xfonts/C 1>/dev/null
fi
#ifdef cpp_Xsession
fi
#endif
#if defined (__osf__)
#ifdef cpp_Xsetup
if [ "$DTXSERVERLOCATION" != "remote" ]; then
HASH
HASH We can only modify the font path or the keymap if the X server is
HASH local.
HASH
HASH Since X server is local, optimize by checking local desktop
HASH font directories and making one call to xset.
HASH
HASH
HASH
HASH check if the system has a Low or High Resolution Monitor
HASH - High Resolution (1280 x 1024) uses 100 dpi fonts.
HASH - Medium Resolution (1024 x 864 ) uses 75 dpi fonts.
HASH - Low Resolution (1024 x 768 or lower) uses 75 dpi fonts.
HASH This will only switch to 75dpi fonts if there is a low or medium
HASH resolution monitor found.
HASH
HASH
fd=""
prefplist=""
appfplist=""
setfont="No"
FONTLIB="/usr/lib/X11/fonts"
I18N="/usr/i18n/lib/X11/fonts/decwin"
pixwidth=`/usr/sbin/sizer -gr | awk -Fx ' { print $1 } ' `
if [ ${pixwidth} -lt 1280 ]
then
nat_res="75dpi"
alt_res="100dpi"
else
nat_res="100dpi"
alt_res="75dpi"
fi
HASH
HASH Add scalable fonts to the font path, based on
HASH screen resolution
HASH
if [ ${pixwidth} -lt 1024 ]
then
HASH
HASH Prepend fontpaths
HASH
prefplist="${FONTLIB}/Speedo ${FONTLIB}/Type1 ${FONTLIB}/Type1Adobe"
else
HASH
HASH Append fontpaths
HASH
appfplist="${FONTLIB}/Type1Adobe"
fi
HASH
HASH Append fontpaths
HASH add optional extra fonts
HASH
cde_configuration_top=CDE_CONFIGURATION_TOP
cde_installation_top=CDE_INSTALLATION_TOP
appfplist="${appfplist} ${FONTLIB}/user/${nat_res} ${FONTLIB}/user/misc"
if [ "${LANG-C}" != "C" ]; then
appfplist="${appfplist} $cde_configuration_top/config/xfonts/$LANG/$nat_res"
appfplist="${appfplist} $cde_configuration_top/config/xfonts/$LANG/$alt_res"
fi
appfplist="${appfplist} $cde_configuration_top/config/xfonts/C"
appfplist="${appfplist} $cde_configuration_top/config/xfonts/C/$nat_res"
appfplist="${appfplist} $cde_configuration_top/config/xfonts/C/$alt_res"
if [ "${LANG-C}" != "C" ]; then
appfplist="${appfplist} $cde_installation_top/config/xfonts/$LANG/$nat_res"
appfplist="${appfplist} $cde_installation_top/config/xfonts/$LANG/$alt_res"
fi
appfplist="${appfplist} $cde_installation_top/config/xfonts/C"
appfplist="${appfplist} $cde_installation_top/config/xfonts/C/$nat_res"
appfplist="${appfplist} $cde_installation_top/config/xfonts/C/$alt_res"
HASH
HASH Prepend fontpaths
HASH add i18n fonts if they exist
HASH
prefplist="${I18N}/${nat_res} ${I18N}/${alt_res} ${prefplist}"
HASH
HASH Prepend to fontpath
HASH
for i in ${prefplist}
do
if [ -f ${i}/fonts.dir ]
then
if [ $fd ]
then
fd="${fd},${i}/"
else
fd="${i}/"
setfont="Yes"
fi
fi
done
if [ ${setfont} = Yes ]
then
$XDIR/xset +fp ${fd}
if [ $? -ne 0 ]
then
HASH
HASH set the old slow way.....
HASH
for i in ${prefplist}
do
if [ -f ${i}/fonts.dir ]
then
$XDIR/xset +fp ${i}
fi
done
fi
HASH
HASH End of the setting the old slow way.........
HASH
fd=""
setfont='No'
fi
HASH
HASH Append to fontpath
HASH
for i in ${appfplist}
do
if [ -f ${i}/fonts.dir ]
then
if [ $fd ]
then
fd="${fd},${i}/"
else
fd="${i}/"
setfont="Yes"
fi
fi
done
if [ ${setfont} = Yes ]
then
$XDIR/xset fp+ ${fd}
if [ $? -ne 0 ]
then
HASH
HASH set the old slow way.....
HASH
for i in ${appfplist}
do
if [ -f ${i}/fonts.dir ]
then
$XDIR/xset fp+ ${i}
fi
done
fi
HASH
HASH End of the setting the old slow way.........
HASH
fi
fi
#endif
#endif
#if defined (_AIX)
XCOMM ##########################################################################
XCOMM
XCOMM Setup keyboard mapping for local display if required
XCOMM
XCOMM ##########################################################################
#if 0
/*
* The keyboard mapping method depends upon how the session is started:
*
* - from dtlogin with a local X server
*
* This is generally the case for the console. Since the keyboard is
* on the login server, the keyboard mapping will be done in Xsetup
* and the language will be determined via querybkd.
*
* - from dtlogin with a remote X server
*
* The is generally the case for X stations. Since the keyboard is not
* on the login server, we cannot query for the language. The keyboard
* language will thus be provided in the KBD_MAP table setup by the
* sysadmin and the keyboard mapping will be done in Xsetup.
*
* - using 'xinit /usr/dt/bin/Xsession' from an HFT/LFT
*
* Since the keyboard is local, the keyboard mapping will be done in
* Xsession and the language will be determined via querykbd.
*
* - starting Xsession from an x_st_mgr provided aixterm on an X station
*
* The X station manager sets up the keyboard mapping in this case, so
* no work is required.
*/
#endif
SetKeyboardMap()
{
HASH $1 = language name
#if defined (AIXV4)
# define cpp_KBDALTFILE "$KBD_LIST $XMODDIR/${1}@alt/keyboard"
#else
# define cpp_KBDALTFILE "$KBD_LIST $XMODDIR/$1/keyboard.alt"
#endif
KBD_LIST=""
KBD_LIST="$KBD_LIST $IMKEYMAPPATH/$1/keyboard"
if [ "$IMKEYMAPPATH" = "/usr/lib/nls/im.alt" ]; then
KBD_LIST=cpp_KBDALTFILE
fi
KBD_LIST="$KBD_LIST $XMODDIR/$1/keyboard"
for i in $KBD_LIST; do
if [ -r $i ]; then
#ifdef cpp_Xsession
Log "starting xmodmap $i"
#endif
$XDIR/xmodmap $i
return 0
fi
done
return 1
}
#ifdef cpp_Xsession
if [ "${pexec##*/}" != "dtlogin" -a -z "$XSTATION" ]; then
HASH
HASH If Xsession started by dtlogin, it is assumed that the keyboard mapping
HASH was set up in Xsetup. If Xsession not started by dtlogin, but XSTATION
HASH set, it is assumed that the keyboard mapping was set up by x_st_mgr.
HASH
#endif
#if defined (AIXV4)
# define cpp_CNAME "C"
#else
# define cpp_CNAME "C.hft"
#endif
#ifdef cpp_Xsetup
HASH
HASH Determine keyboard language
HASH
KBD_LANG=""
if [ "$DTXSERVERLOCATION" = "local" ]; then
HASH
HASH Local display so query for keyboard map
HASH
KBD_LANG=`/usr/lpp/X11/bin/querykbd`
else
HASH
HASH Non-local display so use KEY_MAP list
HASH
let i=0
while true; do
[ -z "${KBD_MAP[i]}" ] && break
if [ "$DISPLAY" = "${KBD_MAP[i]%% *}" ]; then
KBD_LANG=${KBD_MAP[i]##* }
break
fi
let i=$i+1
done
fi
#endif
#ifdef cpp_Xsession
KBD_LANG=`/usr/lpp/X11/bin/querykbd`
#endif
HASH
HASH Set up keyboard mapping
HASH
KBD=""
XMODDIR=/usr/lpp/X11/defaults/xmodmap
if [ ! -z "$KBD_LANG" ]; then
if [ "$KBD_LANG" != "NULL" -a "$KBD_LANG" != cpp_CNAME ]; then
SetKeyboardMap $KBD_LANG
if [ $? != 0 ]; then
SetKeyboardMap $LANG
fi
else
SetKeyboardMap $LANG
fi
fi
#ifdef cpp_Xsession
fi
#endif
#endif

View File

@@ -0,0 +1,22 @@
(c) Copyright 1990, Open Software Foundation, Inc.
(c)Copyright 1983-1991 Hewlett-Packard Co.
(c)Copyright 1979 The Regents of the University of Colorado, a body corporate.
(c)Copyright 1979, 1980, 1983, 1985-1990 The Regents of the Univ. of California
(c)Copyright 1980, 1984, 1986 AT&T Technologies.
(c)Copyright 1985, 1986, 1988 Massachusetts Institute of Technology
(c)Copyright 1986 Digital Equipment Corp.
(c)Copyright 1990 Motorola, Inc. All Rights Reserved.
(c) Copyright 1993, 1994 Hewlett-Packard Company
(c) Copyright 1993, 1994 International Business Machines Corp.
(c) Copyright 1993, 1994 Sun Microsystems, Inc.
(c) Copyright 1993, 1994 Novell, Inc.
RESTRICTED RIGHTS LEGEND
Use, duplication or disclosure by the U.S. Government is subject to
restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
Technical Data and Computer Software clause at DFARS 252.227-7013 for DOD
agencies, and subparagraphs (c)(1) and (c)(2) of the Commercial Computer
Software Restricted Rights clause at FAR 52.227-19 for other agencies.
HEWLETT-PACKARD COMPANY
3000 Hanover Street
Palo Alto, California 94304 U.S.A.

View File

@@ -0,0 +1,42 @@
!!######################################################################
!!
!! Session database file
!!
!! Common Desktop Environment
!!
!! (c) Copyright 1995 Digital Equipment Corporation.
!! (c) Copyright 1995 Hewlett-Packard Company.
!! (c) Copyright 1995 International Business Machines Corp.
!! (c) Copyright 1995 Sun Microsystems, Inc.
!! (c) Copyright 1995 Novell, Inc.
!! (c) Copyright 1995 FUJITSU LIMITED.
!! (c) Copyright 1995 Hitachi.
!!
!! ************** DO NOT EDIT THIS FILE **************
!!
!! CDE_INSTALLATION_TOP/config/%L/Xresources.d/current.session is a
!! factory-default file and will be unconditionally overwritten
!! upon subsequent installations.
!!
!! Before making changes to the file, copy it to the configuration
!! directory, CDE_CONFIGURATION_TOP/config/%L/Xresources.d/
!!
!! $XConsortium: current.session.src /main/4 1996/04/21 20:05:09 drk $
!!
!!######################################################################
!!######################################################################
!!
!! Resources for a generic current session
!!
!! Note that %DisplayName% will be replaced with the display
!! name where dtgreet is running. For example, if the display name
!! is thrush:0 and the altDtName resource is %DisplayName%Home,
!! the session name will be "thrush:0 - Home".
!!
Dtlogin*altDtsIncrement: True
Dtlogin*altDtName: %|nls-2-#Current#|
Dtlogin*altDtKey: /usr/dt/bin/Xsession
Dtlogin*altDtStart: /usr/dt/bin/Xsession -session current

View File

@@ -0,0 +1,41 @@
!!######################################################################
!!
!! Session database file
!!
!! Common Desktop Environment
!!
!! (c) Copyright 1995 Digital Equipment Corporation.
!! (c) Copyright 1995 Hewlett-Packard Company.
!! (c) Copyright 1995 International Business Machines Corp.
!! (c) Copyright 1995 Sun Microsystems, Inc.
!! (c) Copyright 1995 Novell, Inc.
!! (c) Copyright 1995 FUJITSU LIMITED.
!! (c) Copyright 1995 Hitachi.
!!
!! ************** DO NOT EDIT THIS FILE **************
!!
!! CDE_INSTALLATION_TOP/config/%L/Xresources.d/display.current is a
!! factory-default file and will be unconditionally overwritten
!! upon subsequent installations.
!!
!! Before making changes to the file, copy it to the configuration
!! directory, CDE_CONFIGURATION_TOP/config/%L/Xresources.d/
!!
!! $XConsortium: display.current.session.src /main/4 1996/04/21 20:05:12 drk $
!!
!!######################################################################
!!######################################################################
!!
!! Resources for a display-specific current session
!!
!! Note that %DisplayName% will be replaced with the display
!! name where dtgreet is running. For example, if the display name
!! is thrush:0 and the altDtName resource is %DisplayName%Home,
!! the session name will be "thrush:0 - Home".
!!
Dtlogin*altDtsIncrement: True
Dtlogin*altDtName: %DisplayName%%|nls-2-#Current#|
Dtlogin*altDtKey: /usr/dt/bin/Xsession
Dtlogin*altDtStart: /usr/dt/bin/Xsession -session display-current

View File

@@ -0,0 +1,41 @@
!!######################################################################
!!
!! Session database file
!!
!! Common Desktop Environment
!!
!! (c) Copyright 1995 Digital Equipment Corporation.
!! (c) Copyright 1995 Hewlett-Packard Company.
!! (c) Copyright 1995 International Business Machines Corp.
!! (c) Copyright 1995 Sun Microsystems, Inc.
!! (c) Copyright 1995 Novell, Inc.
!! (c) Copyright 1995 FUJITSU LIMITED.
!! (c) Copyright 1995 Hitachi.
!!
!! ************** DO NOT EDIT THIS FILE **************
!!
!! CDE_INSTALLATION_TOP/config/%L/Xresources.d/display.home.session is
!! a factory-default file and will be unconditionally overwritten
!! upon subsequent installations.
!!
!! Before making changes to the file, copy it to the configuration
!! directory, CDE_CONFIGURATION_TOP/config/%L/Xresources.d/
!!
!! $XConsortium: display.home.session.src /main/3 1996/04/21 20:05:16 drk $
!!
!!######################################################################
!!######################################################################
!!
!! Resources for a display-specific home session
!!
!! Note that %DisplayName% will be replaced with the display
!! name where dtgreet is running. For example, if the display name
!! is thrush:0 and the altDtName resource is %DisplayName%Home,
!! the session name will be "thrush:0 - Home".
!!
Dtlogin*altDtsIncrement: True
Dtlogin*altDtName: %DisplayName%%|nls-1-#Home#|
Dtlogin*altDtKey: /usr/dt/bin/Xsession
Dtlogin*altDtStart: /usr/dt/bin/Xsession -session display-home

View File

@@ -0,0 +1,49 @@
XCOMM!/bin/ksh
XCOMM $XConsortium: dtlslocale.src /main/6 1996/11/19 11:42:40 drk $
XCOMM
XCOMM Common Desktop Environment
XCOMM
XCOMM (c) Copyright 1996 Digital Equipment Corporation.
XCOMM (c) Copyright 1993,1994,1996 Hewlett-Packard Company.
XCOMM (c) Copyright 1993,1994,1996 International Business Machines Corp.
XCOMM (c) Copyright 1993,1994,1996 Sun Microsystems, Inc.
XCOMM (c) Copyright 1996 Novell, Inc.
XCOMM (c) Copyright 1996 FUJITSU LIMITED.
XCOMM (c) Copyright 1996 Hitachi.
XCOMM (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of
XCOMM Novell, Inc.
XCOMM
XCOMM Generate list of installed locales and locale desciptive names
XCOMM
(
echo "LOCALELIST" # indicate start of locale list
/usr/bin/locale -a # generate locale list
echo "LSMLELIST" # indicate start of locale information list
/usr/lib/nls/lsmle -c # generate locale information list
) |
/usr/bin/awk '
/LOCALELIST/ {state=0; next} # start of installed locale list
/LSMLELIST/ {state=1; next} # start of locale information list
state==0 { # processing locale list item
split($0, a, "\."); # split item on blank
lang[a[1]]=" " a[1]; # first element is language name
}
state==1 { # item format is: codeset desc desc [locale]
split($0, a, " "); # split item on blank
name=a[NF]; # get locale name
sub(/\[/, "", name); # strip [
sub(/\]/, "", name); # strip ]
if (name in lang) { # was locale returned by locale -a?
a[NF]=a[1]; # move codeset from front to end of array
delete a[1]; # delete old codeset element in array
lang[name]=""; # blank description
for (i in a) { # use resulting array as desciption
lang[name]=lang[name] " " a[i];
}
}
}
END {
for (i in lang) { # if locale returned by locale -a
print i lang[i]; # print "locale description"
}
}'

View File

@@ -0,0 +1,159 @@
XCOMM ##########################################################################
XCOMM #
XCOMM # .dtprofile
XCOMM #
XCOMM # user personal environment variables
XCOMM #
XCOMM # Common Desktop Environment (CDE)
XCOMM #
XCOMM # (c) Copyright 1996 Digital Equipment Corporation.
XCOMM # (c) Copyright 1993,1994,1996 Hewlett-Packard Company.
XCOMM # (c) Copyright 1993,1994,1996 International Business Machines Corp.
XCOMM # (c) Copyright 1993,1994,1996 Sun Microsystems, Inc.
XCOMM # (c) Copyright 1993,1994,1996 Novell, Inc.
XCOMM # (c) Copyright 1996 FUJITSU LIMITED.
XCOMM # (c) Copyright 1996 Hitachi.
XCOMM #
XCOMM # SYSPROFILE COMMENT START
XCOMM #
XCOMM # ************** DO NOT EDIT THIS FILE **************
XCOMM #
XCOMM # CDE_INSTALLATION_TOP/config/sys.dtprofile is a factory-default file
XCOMM # and will be unconditionally overwritten upon subsequent installation.
XCOMM # Before making changes to the file, copy it to the configuration
XCOMM # directory, CDE_CONFIGURATION_TOP/config.
XCOMM #
XCOMM # The sys.dtprofile file is copied to $HOME/.dtprofile the first
XCOMM # time a user logs into the desktop. Any lines in sys.dtprofile
XCOMM # located between "SYSPROFILE COMMENT START" and "SYSPROFILE COMMENT END"
XCOMM # are filtered out during the copy.
XCOMM #
XCOMM # SYSPROFILE COMMENT END
XCOMM #
XCOMM # $TOG: dtprofile.src /main/5 1999/03/30 10:32:43 mgreess $
XCOMM #
XCOMM ##########################################################################
XCOMM ##########################################################################
XCOMM #
XCOMM # Your $HOME/.dtprofile is read each time you login to the Common Desktop
XCOMM # Environment (CDE) and is the place to set or override desktop
XCOMM # environment variables for your session. Environment variables set in
XCOMM # $HOME/.dtprofile are made available to all applications on the desktop.
XCOMM # The desktop will accept either sh or ksh syntax for the commands in
XCOMM # $HOME/.dtprofile.
XCOMM #
XCOMM ##########################################################################
XCOMM ##########################################################################
XCOMM #
XCOMM # Random stdout and stderr output from apps started by Session Mgr or
XCOMM # by actions via front panel or workspace menu can be directed into
XCOMM # the user's $HOME/.dt/sessionlogs directory. By default this output
XCOMM # is not recorded. Instead it is sent off to /dev/null (Unix's "nothing"
XCOMM # device).
XCOMM #
XCOMM # If this random application output is wanted (usually only wanted for
XCOMM # debugging purposes), commenting out following "dtstart_sessionlogfile"
XCOMM # lines will send output to your $HOME/.dt/sessionlogs directory.
XCOMM #
XCOMM # Alternatively, can change "/dev/null" to "/dev/console" to see this
XCOMM # debugging output on your console device. Can start a console via the
XCOMM # Workspace programs menu or via Application Mgr's Desktop Tools
XCOMM # "Terminal Console" icon.
XCOMM #
XCOMM ##########################################################################
echo "This session log file is currently disabled." > $dtstart_sessionlogfile
echo "To enable logging, edit $HOME/.dtprofile and" >> $dtstart_sessionlogfile
echo "remove dtstart_sessionlogfile=/dev/null line." >> $dtstart_sessionlogfile
export dtstart_sessionlogfile="/dev/null"
XCOMM ##########################################################################
XCOMM #
XCOMM # By default, the desktop does not read your standard $HOME/.profile
XCOMM # or $HOME/.login files. This can be changed by uncommenting the
XCOMM # DTSOURCEPROFILE variable assignment at the end of this file. The
XCOMM # desktop reads .profile if your $SHELL is "sh" or "ksh", or .login
XCOMM # if your $SHELL is "csh".
XCOMM #
XCOMM # The desktop reads the .dtprofile and .profile/.login without an
XCOMM # associated terminal emulator such as xterm or dtterm. This means
XCOMM # there is no available command line for interaction with the user.
XCOMM # This being the case, these scripts must avoid using commands that
XCOMM # depend on having an associated terminal emulator or that interact
XCOMM # with the user. Any messages printed in these scripts will not be
XCOMM # seen when you log in and any prompts such as by the 'read' command
XCOMM # will return an empty string to the script. Commands that set a
XCOMM # terminal state, such as "tset" or "stty" should be avoided.
XCOMM #
XCOMM # With minor editing, it is possible to adapt your .profile or .login
XCOMM # for use both with and without the desktop. Group the statements not
XCOMM # appropriate for your desktop session into one section and enclose them
XCOMM # with an "if" statement that checks for the setting of the "DT"
XCOMM # environment variable. When the desktop reads your .profile or .login
XCOMM # file, it will set "DT" to a non-empty value for which your .profile or
XCOMM # .login can test.
XCOMM #
XCOMM # example for sh/ksh
XCOMM #
XCOMM # if [ ! "$DT" ]; then
XCOMM # #
XCOMM # # commands and environment variables not appropriate for desktop
XCOMM # #
XCOMM # stty ...
XCOMM # tset ...
XCOMM # DISPLAY=mydisplay:0
XCOMM # ...
XCOMM # fi
XCOMM #
XCOMM # #
XCOMM # # environment variables common to both desktop and non-desktop
XCOMM # #
XCOMM # PATH=$HOME/bin:$PATH
XCOMM # MYVAR=value
XCOMM # export MYVAR
XCOMM # ...
XCOMM #
XCOMM # example for csh
XCOMM #
XCOMM # if ( ! ${?DT} ) then
XCOMM # #
XCOMM # # commands and environment variables not appropriate for desktop
XCOMM # #
XCOMM # stty ...
XCOMM # tset ...
XCOMM # setenv DISPLAY mydisplay:0
XCOMM # ...
XCOMM # endif
XCOMM #
XCOMM # #
XCOMM # # environment variables common to both desktop and non-desktop
XCOMM # #
XCOMM # setenv PATH $HOME/bin:$PATH
XCOMM # setenv MYVAR value
XCOMM # ...
XCOMM #
XCOMM # Errors in .dtprofile or .profile (.login) may prevent a successful
XCOMM # login. The login process scans .dtprofile and .profile (.login)
XCOMM # for errors (using the '-n' option to the shell). It avoids running
XCOMM # them if errors are found and prints the errors to the
XCOMM # $HOME/.dt/startlog file. However, his process is not fool proof
XCOMM # as some shells are better at finding errors thant others.
XCOMM # If after you login, your session startup terminates and you
XCOMM # are presented with the login screen, this might be the cause. If this
XCOMM # happens, select the Options->Sessions->Failsafe Session item on the
XCOMM # login screen, login and correct the error. The $HOME/.dt/startlog and
XCOMM # $HOME/.dt/errorlog files may be helpful in identifying errors.
XCOMM #
XCOMM ##########################################################################
XCOMM
XCOMM If $HOME/.profile (.login) has been edited as described above, uncomment
XCOMM the following line.
XCOMM
XCOMM DTSOURCEPROFILE=true

View File

@@ -0,0 +1,41 @@
!!######################################################################
!!
!! Session database file
!!
!! Common Desktop Environment
!!
!! (c) Copyright 1995 Digital Equipment Corporation.
!! (c) Copyright 1995 Hewlett-Packard Company.
!! (c) Copyright 1995 International Business Machines Corp.
!! (c) Copyright 1995 Sun Microsystems, Inc.
!! (c) Copyright 1995 Novell, Inc.
!! (c) Copyright 1995 FUJITSU LIMITED.
!! (c) Copyright 1995 Hitachi.
!!
!! ************** DO NOT EDIT THIS FILE **************
!!
!! CDE_INSTALLATION_TOP/config/%L/Xresources.d/home.session is a
!! factory-default file and will be unconditionally overwritten
!! upon subsequent installations.
!!
!! Before making changes to the file, copy it to the configuration
!! directory, CDE_CONFIGURATION_TOP/config/%L/Xresources.d/
!!
!! $XConsortium: home.session.src /main/3 1996/04/21 20:05:05 drk $
!!
!!######################################################################
!!######################################################################
!!
!! Resources for a generic home session
!!
!! Note that %DisplayName% will be replaced with the display
!! name where dtgreet is running. For example, if the display name
!! is thrush:0 and the altDtName resource is %DisplayName%Home,
!! the session name will be "thrush:0 - Home".
!!
Dtlogin*altDtsIncrement: True
Dtlogin*altDtName: %|nls-1-#Home#|
Dtlogin*altDtKey: /usr/dt/bin/Xsession
Dtlogin*altDtStart: /usr/dt/bin/Xsession -session home

View File

@@ -0,0 +1,64 @@
XCOMM!/bin/ksh
XCOMM $XConsortium: rc.bootx.src /main/4 1996/04/21 19:52:52 drk $
XCOMM
XCOMM COMPONENT_NAME: desktop
XCOMM
XCOMM FUNCTIONS: none
XCOMM
XCOMM ORIGINS: 27
XCOMM
XCOMM
XCOMM (C) COPYRIGHT International Business Machines Corp. 1994, 1995
XCOMM All Rights Reserved
XCOMM Licensed Materials - Property of IBM
XCOMM US Government Users Restricted Rights - Use, duplication or
XCOMM disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
XCOMM
if [ ! -f /.bootsequence ]; then
XCOMM
XCOMM boot sequence has already ended
XCOMM
return 0
fi
echo "XAUTHORITY=$XAUTHORITY" >/.bootsequence
/usr/bin/chown root.system /dev/console
XCOMM
XCOMM Start up aixconsole to display console messages and save PID
XCOMM
/usr/bin/X11/aixconsole -fg black -bg "light grey" &
XCONS_PID=$!
XCOMM
XCOMM Determine if X resolution is 1024
XCOMM This command will set the variables SCREEN_WIDTH, SCREEN_HEIGHT
XCOMM
eval `/usr/sbin/bootxutil -dpyinfo`
XCOMM
XCOMM If X resolution is 1280X1024 then display big graphic, else display small
XCOMM graphic.
XCOMM
if [ "$SCREEN_WIDTH" -eq 1280 ] ; then
/usr/bin/X11/xdi -onroot -center -border black /usr/lpp/X11/lib/X11/images/logo2.gif >/dev/null
else
/usr/bin/X11/xdi -onroot -center -border black /usr/lpp/X11/lib/X11/images/logo1.gif >/dev/null
fi
XCOMM
XCOMM wait for boot sequence to end
XCOMM
while [ -f /.bootsequence ]; do
sleep 2
done
XCOMM
XCOMM clean up...
XCOMM remove any left over backgrounds (such as logo or install_assist backdrop)
XCOMM
/usr/bin/kill $XCONS_PID
/usr/bin/X11/xsetroot -solid black