Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > 9c31c0ca2451c85a0500455d64c7f0ac > files > 1

xview-3.2p1.4-8mdk.src.rpm

#!/bin/sh
# Xinitrc executed by openwin script to display startup logo
# and restore desktop setup (saved using owplaces)
# Hereby placed into public domain by Kenneth Osterberg 1993.

# Display startup logo
#if [ -x $OPENWINHOME/bin/xcenter -a -f $OPENWINHOME/etc/lxxview.xbm ]; then
#    $OPENWINHOME/bin/xcenter -bitcenter $OPENWINHOME/etc/lxxview.xbm && sleep 2
#fi
#if [ -z "$NOPAINT" ]; then
#echo olvwm.PaintWorkspace: False | xrdb -merge
#xv -root -quit /home/snowcat/gif/oceanflr.bmp
#else
#unset NOPAINT
#fi

userresources=$HOME/.Xresources
xviewresources=$HOME/.Xdefaults
usermodmap=$HOME/.Xmodmap
sysresources=$X11HOME/lib/X11/xinit/.Xresources
sysmodmap=$X11HOME/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps
if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
    xrdb -merge $userresources
fi
if [ -f $xviewresources ]; then
    xrdb -merge $xviewresources
fi
if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

# I *think* this might be the cause of the notorius backspace
# problem.  I'm tossing it out...
#
# xmodmap -e "keysym BackSpace = Delete"

# Run .xinitrc of user if there is one
if [ -x $HOME/.xinitrc ]; then
	exec $HOME/.xinitrc
fi

# Startup the OpenLook window manager
if [ ! -z "$WINDOWMANAGER" ]; then
	xsetroot -def
	exec $WINDOWMANAGER -f & wmpid=$!
else
	sleep 15 & pid=$!
	exec ${OPENWINHOME-/usr/openwin}/bin/olwm -f -syncpid $pid & wmpid=$!
	wait $pid
fi

# Restore saved desktop settings, if any
if [ -f $HOME/.openwin-init ]; then
	. $HOME/.openwin-init
elif [ -f $OPENWINHOME/lib/openwin-init ];then
	. $OPENWINHOME/lib/openwin-init # Default desktop seetings

fi

wait $wmpid