[comp.windows.open-look] X11/NeWS Server initialization problem

wagner@iti.org (Larry Wagner) (02/27/91)

I have recently installed OW 2.0 on my Sun 386i.
The problem that I have is when OW comes up,
a message appears when the blue logo screen
is displayed that says "Couldn't open".
I believe I have traced the problem down to
the $OPENWINHOME/lib/openwin-sys shell script.

The $OPENWINHOME/bin/openwin startup script
executes the following line:

# start up xinit and thus the server.
$OPENWINHOME/bin/xinit -- ${SERVER-$OPENWINHOME/bin/xnews} $DISPLAY $PASSTHRU $AUTH 

After this, the echo print statements I placed
in the $OPENWINHOME/lib/openwin-sys shell script
are displayed along with the error message.
Using this debugging method, it appears that
the "input_from_defaults" command is at fault.
However, I am able to execute it from a commandtool
and from within a shell script without any error
messages.  My .defaults file exists and has -rw--r--r permissions.
Also, this script is executed from my home directory
so it should be able to locate the .defaults file.

Does anyone have any suggestions?

Here is the script file:
------------------------------------------
#!/bin/sh
# openwin-sys - OpenWindows X11/NeWS Server system initialization file
echo "in openwin-sys script" > /dev/console
#install Meta keys, XView function keys, AltGraph and Num_Lock as modifiers
echo "executing xmodmap" > /dev/console
xmodmap -e 'add mod1 = Meta_L Meta_R' \
	-e 'add mod2 = F13 F16 F18 F19 F20' \
	-e 'add mod3 = Mode_switch' \
	-e 'add mod4 = Num_Lock'

#load SunView defaults
echo "executing input_from_defaults" > /dev/console
echo "pwd is $PWD" > /dev/console
echo "home is $HOME" > /dev/console
cd $HOME
echo "pwd is $PWD" > /dev/console
input_from_defaults

#invoke XView selection service
echo "executing sv_xv_sel_svc" > /dev/console
(sv_xv_sel_svc &) &

echo "leaving openwin-sys script" > /dev/console
exit 0
------------------------------------------
--
--------------------------------------------------------------------------------
Larry E. Wagner                     | wagner@chepil.weru.ksu.edu
USDA-ARS Wind Erosion Research Unit | wagner@matt.ksu.ksu.edu
105B East Waters Hall, KSU          | ...!{rutgers,texbell}!ksuvax1!weru!wagner
Manhattan, KS 66506                 |phone (913)532-6807
--------------------------------------------------------------------------------