Further SUMMARY: Properties window too big etc...

From: Ed Maple (edm@octopus.wr.usgs.gov)
Date: Wed Aug 02 1995 - 16:07:38 CDT


Hi again y'all. After sending out my summary I received a couple more emails
with information. To recap again, I was having a problem with the display of
the Properties ($OPENWINHOME/bin/props) program, where the window was
exceedingly long. This was under xdm.

The previous summary is still valid, but Jess Dominguez sent me a much more
comprehensive (and elegant) solution which I've implemented. I've included it
"in toto" below.

Again, thanks to the following for their kind and helpful responses:

"Christopher L. Barnard" <cbarnard@CS.UChicago.EDU>
fhb@kestnbaum.com (Fred Berns)
black_cw@lvs-emh.lvs.loral.com (Clinton Black (184487))
danny@esaserv1.dseg.ti.com (Danny Johnson)
Kevin.Sheehan@uniq.com.au (Kevin Sheehan {Consulting Poster Child})
"jess dominguez" <jess_dominguez@mail.amsinc.com>
Kevin Davidson <tkld@cogsci.ed.ac.uk>

I really appreciate your taking the time to respond to my query, especially
knowing how overwhelming the volume of received email can get sometimes (many
times? most times?)

And now, Jess' Jewel!

> I experienced the same problem when I first tried to get XDM running.
> The problem is basically that your resources are not being loaded into
> the root window before you start up a session.
>
> I fixed this by changing the Xsession file, so that it loads the
> default resources BEFORE starting the olwm and the user's session.
>
> For example, my Xsession file looks like this:
>
>
># /usr/openwin/lib/xdm/Xsession
># redirect errors to a file in user's home directory if we can
>for errfile in "$HOME/.xsession-errors" "/tmp/xses-$USER"
>do
> if ( cp /dev/null "$errfile" 2> /dev/null )
> then
> chmod 600 "$errfile"
> exec > "$errfile" 2>&1
> break
> fi
>done
>
>case $# in
>1)
> case $1 in
> failsafe)
> exec xterm -geometry 80x24-0-0
> ;;
> esac
>esac
>
>personalstartup=$HOME/.xsession
>systemstartup=/telia/xdm/xsession
>resources=/usr/openwin/lib/Xdefaults
>
>if [ -f $personalstartup ]; then
> exec $personalstartup
>elif [ -f $systemstartup ]; then
> exec $systemstartup
>else
> if [ -f $resources ]; then
> xrdb -load $resources
> fi
> olwm &
> exec xterm -geometry 80x24+10+10 -ls
>fi
>
>
>
>And the file that I called the 'systemstartup' file looks like this:
># /telia/xdm/xsession
># BEGIN TELIA Project modifications
>ENV=$HOME/.profile
>MANPATH=/usr/man:/usr/openwin/share/man
>
># Following are X-related environment variables
>OPENWINHOME=/usr/openwin
>XAPPLRESDIR=$OPENWINHOME/lib/app-defaults/
>XFILESEARCHPATH=$OPENWINHOME/lib/locale/%L/%T/%N%S:$OPENWINHOME/lib/%T/%N%S
>XENVIRONMENT=$HOME
>HELPPATH=$OPENWINHOME/lib/locale:$OPENWINHOME/lib/help
>LD_LIBRARY_PATH=$OPENWINHOME/lib:/usr/lib
>
>export ENV MANPATH OPENWINHOME XAPPLRESDIR XFILESEARCHPATH XENVIRONMENT
HELPPATH
> LD_LIBRARY_PATH
># END TELIA Project modifications
>
>xrdb $OPENWINHOME/lib/Xdefaults # Load Default X11 resource database
>if [ -f $HOME/.Xdefaults ]; then
> xrdb -merge $HOME/.Xdefaults # Load Users X11 resource database
>fi
>
>$OPENWINHOME/lib/openwin-sys # OpenWindows system initialization
>
>eval `locale_env -env` # Set Locale Environment
>
>if [ "$OW_WINDOW_MANAGER" ]; then # Alternate Window Manager
> xsetroot -def # Clear root window
> $OW_WINDOW_MANAGER & wmpid=$! # Start Alt Window Manager
> dsdm & # OpenLook Drop Site Database
> unset OW_WINDOW_MANAGER
>else
> sleep 15 & pid=$! # OpenLook Window Manager
> olwm -syncpid $pid & wmpid=$!
> wait $pid # Pause until olwm inits
>fi
>
>if [ -x $HOME/.openwin-init ]; then
> $HOME/.openwin-init # Custom OpenWindows tools
>else
> $OPENWINHOME/lib/openwin-init # Default OpenWindows tools
>fi
>
>wait $wmpid # Wait for wm (key client) to exit
>
>
>
>
>
>Thus you can see that I make sure that the $OPENWINHOME/lib/Xdefaults are
loaded
>using xrdb before starting olwm. This will fix your problem, and several
other
>problems that you may not have uncovered yet (such as starting up xman).
>
>Good luck
>Jess

-ed-

Ed Maple, System Administrator, Pacific Marine Geology US Geological Survey
voice: (415)354-3236 FAX: (415)354-3191 email: edm@mog.wr.usgs.gov

Any opinion expressed is mine, no matter where I got it from, and I retain
all rights to it, should it actually prove to be of any value.
----------------------------------------------------------------------------
"...humility is one of the finest variations of expressing self-esteem."
Norbert Untersteiner
----------------------------------------------------------------------------
E-mail geology questions to: "Ask-A-Geologist@octopus.wr.usgs.gov"

USGS World Wide Web Sites:
"http://info.er.usgs.gov" -USGS info & links to other home pages
"http://walrus.wr.usgs.gov" -Marine and Coastal Geology
"http://quake.wr.usgs.gov" -Current earthquake info
"http://vulcan.wr.usgs.gov" -Cascades Volcano Observatory
"http://www.soest.hawaii.edu/hvo/" -Hawaii Volcano Observatory
"http://www.avo.alaska.edu" -Alaska Volcano Observatory
----------------------------------------------------------------------------



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:30 CDT