2 XCOMM ####################################################################
3 XCOMM ## File: 0015.sun.env.src
5 XCOMM ## Default Location: /usr/dt/config/Xsession.d/
7 XCOMM ## Purpose: Setup various items for Solaris desktop support
9 XCOMM ## Description: This script is invoked by means of the Xsession file
10 XCOMM ## at user login.
12 XCOMM ## Invoked by: /usr/dt/bin/Xsession
14 XCOMM ## Product: @(#)Common Desktop Environment 1.0
16 XCOMM ## $XConsortium: 0015.sun.env.src /main/3 1996/04/23 11:41:31 drk $
18 XCOMM ## (c) Copyright 1993, 1994 Sun Microsystems, Inc.
20 XCOMM ####################################################################
24 XCOMM ##########################################################################
26 XCOMM Directory specifications
28 XCOMM ##########################################################################
33 if [ -z "$OPENWINHOME" ]
35 export OPENWINHOME="/usr/openwin"
43 export MANPATH=/usr/man:$OPENWINHOME/share/man
45 export MANPATH=$MANPATH:$OPENWINHOME/share/man
53 export HELPPATH=$OPENWINHOME/lib/locale:$OPENWINHOME/lib/help
55 export HELPPATH=$HELPPATH:$OPENWINHOME/lib/locale:$OPENWINHOME/lib/help
59 HASH Set AnswerBook path
61 if [ -z "$AB_CARDCATALOG" ]
63 export AB_CARDCATALOG=CDE_INSTALLATION_TOP/share/answerbooks/$LANG/ab_cardcatalog
65 export AB_CARDCATALOG=CDE_INSTALLATION_TOP/share/answerbooks/$LANG/ab_cardcatalog:$AB_CARDCATALOG
69 HASH Set XFILESEARCHPATH
71 if [ -z "$XFILESEARCHPATH" ]
73 export XFILESEARCHPATH="$OPENWINHOME/lib/locale/%L/%T/%N%S:$OPENWINHOME/lib/%T/%N%S"
75 export XFILESEARCHPATH="$XFILESEARCHPATH:$OPENWINHOME/lib/locale/%L/%T/%N%S:$OPENWINHOME/lib/%T/%N%S"
79 HASH Allocate default colormaps for dynamic non-default visuals
80 if [ -x $OPENWINHOME/bin/cmap_alloc ]
82 $OPENWINHOME/bin/cmap_alloc -allscreens
86 HASH start virtual keyboard backend
88 HASH To start old OpenLook virtual keyboard for use with the OpenLook deskset
89 HASH applications, uncomment (remove "#" character from) the following 4 lines.
90 HASH Note, this may add a few extra seconds to your desktop start time.
92 HASH if [ -x $OPENWINHOME/bin/vkbd ]
94 HASH $OPENWINHOME/bin/vkbd -nopopup &
98 HASH Init DeskSet colors (for OpenWindow applications)
99 if [ -x $OPENWINHOME/bin/ds_server_init ]
101 $OPENWINHOME/bin/ds_server_init
104 HASH Add font paths in $HOME/.OWfontpath
106 if [ "$DTXSERVERLOCATION" != "remote" ]; then
108 HASH Since X server is local,
109 HASH making one call to xset.
113 HASH Combine lines together to make arguments for the xset command
116 /^[ ]*$/ { fp=" +fp " ; continue }
117 { fontsdir = sprintf("%s%s", $0,"/fonts.dir")
118 getline fontsdata < fontsdir
119 if (fontsdata != 0) {
120 printf("%s%s", fp, $0) ; fp="," ; fontsdata=0 } } ' $1`
122 if [ -n "$FP" ]; then
123 eval "$OPENWINHOME/bin/xset $FP"
128 HASH Add personal fontpaths
129 if [ -r $HOME/.OWfontpath ]; then
130 ADDFONTPATH $HOME/.OWfontpath
135 HASH Since X server is not local, we don't know if the font
136 HASH directories exist on the X server machine, so
137 HASH setting them one at a time.
139 if [ -r $HOME/.OWfontpath ]; then
145 fp=" +fp " ; continue }
146 {cmd = sprintf("%s%s%s%s%s",XDIR,"/xset",fp, $0," 1>/dev/null");
147 system(cmd); } ' XDIR=$OPENWINHOME/bin .OWfontpath
156 XCOMM ######################### eof #####################