#!/bin/sh

# TurboLinux XINITRC by Scott Stone (sstone@turbolinux.com)
# Please do not modify this file by hand.
# Desktop override for IBM NetVista thin client

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -nocpp -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -nocpp -merge $userresources
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi


# Load system default language.
if [ -f "/etc/sysconfig/lang" ]; then
        . /etc/sysconfig/lang
fi



# setup KDE env.
if [ -d /opt/kde ] ; then
        KDEDIR=/opt/kde
        export KDEDIR
        KDE_LANG=ja_JP.EUC
        export KDE_LANG
fi

#
# Programs & Window Managers
#

#xsetroot -solid gray7 &
#xterm -T 'Login Shell' -ls &
#xbiff -update 5 -geometry +5-5 &

if [ -x /usr/X11R6/bin/kinput2x ] ; then
        /usr/X11R6/bin/kinput2x -atok -server localhost &
elif [ -x /usr/X11R6/bin/kinput2 ] ; then
        /usr/X11R6/bin/kinput2 -canna &
fi


#To use wnn, please uncomment the below
#if [ -x /usr/X11R6/bin/kinput2 ] ; then
#       /usr/X11R6/bin/kinput2 &
#fi

#To use canna, please uncomment the below
#if [ -x /usr/X11R6/bin/kinput2 ] ; then
#       /usr/X11R6/bin/kinput2 -canna &
#fi


#START_STARTUP_APPS
#END_STARTUP_APPS

#START_BACKGROUND
#END_BACKGROUND


#START_WINDOWMANAGER
#Modified for IBM NetVista thin client
/IBM/bin/IBMSetup &
/usr/X11R6/bin/icewm
#/usr/bin/startkde
#/usr/bin/gnome-session
#END_WINDOWMANAGER



