#
# @(#)S520thaile	1.13 01/09/20 SMI
#
# Launch Desktop X Input Method Server for THAILE
# Locale: th, th_TH, th_TH.ISO8859-11, th_TH.TIS620
#

if [ -x /usr/openwin/bin/htt -a -f /usr/lib/im/leif/thaile.so ]; then 

	if [ "_$thailedisablestatusarea" = "_true" ]; then
		: # disable status area on each window's bottom
		: # by setting "export thailedisablestatusarea=true"
		: # in $HOME/.dtprofile

		: # for Motif or others which use XIMStatusArea
		echo "*disableStatusArea: true" \
			| /usr/openwin/bin/xrdb -m
		: # for XView which use XIMStatusCallback
		echo "OpenWindows.ImStatusStyle: none" \
			| /usr/openwin/bin/xrdb -m
	fi

	/usr/openwin/bin/htt -if thaile -xim htt_xbe &
	DISABLE_MULTI_SCRIPT_IM=true; export DISABLE_MULTI_SCRIPT_IM
	unset DTSTARTIMS
fi
