2 XCOMM ####################################################################
3 XCOMM ## File: 0020.dtims
5 XCOMM ## Default Location: /usr/dt/config/Xsession.d/
7 XCOMM ## Purpose: Start desktop input method server if required
10 XCOMM ## This script is invoked by means of the Xsession file
11 XCOMM ## at user login. It starts an input method server as
12 XCOMM ## required for selected locales.
14 XCOMM ## Invoked by: /usr/dt/bin/Xsession
16 XCOMM ## Product: @(#)Common Desktop Environment 1.0
20 XCOMM ## The /usr/dt/config/Xsession.d/0020.dtims file is a
21 XCOMM ## factory-default file and will be unconditionally overwritten upon
22 XCOMM ## subsequent installation. To customize input method server startup
23 XCOMM ## behavior, copy this file to the configuration directory,
24 XCOMM ## /etc/dt/config/Xsession.d and customize that version
27 XCOMM ## The value of DTSTARTIMS determines whether this file,
28 XCOMM ## /usr/dt/config/Xsession.d/0020.dtims, will start
29 XCOMM ## the specified input method server. Should an input method server
30 XCOMM ## be started from /etc/dt/config/Xsession.d/0020.dtims
31 XCOMM ## or should an input method server not be desired, unset DTSTARTIMS
32 XCOMM ## to prevent this file from starting one.
34 XCOMM ## The general logic of this file is:
36 XCOMM ## if [ "$DTSTARTIMS" = "True" ]
38 XCOMM ## <start input method server>
39 XCOMM ## unset DTSTARTIMS
42 XCOMM ## Revision: $XConsortium: 0020.dtims /main/2 1996/07/18 14:23:41 drk $
44 XCOMM ## (c) Copyright 1993, 1994 Hewlett-Packard Company
45 XCOMM ## (c) Copyright 1993, 1994 International Business Machines Corp.
46 XCOMM ## (c) Copyright 1993, 1994 Sun Microsystems, Inc.
47 XCOMM ## (c) Copyright 1993, 1994 Novell, Inc.
49 XCOMM ####################################################################
52 if [ "$DTSTARTIMS" = "True" ]
56 XCOMM Start HP platform IM (Input Method) server for Asian locales.
59 if [[ -z "${CDE_IMS_PID:-}" ]]
63 ja_JP* | japanese* | \
65 zh_TW* | chinese-t* | \
68 DTIMS_SCRIPT=0020.dtims
69 DTIMS_CMD="/usr/dt/bin/dtimsstart -env -shell ksh"
71 if [[ -x "${DTIMS_CMD%% *}" ]]; then
73 HASH execute DTIMS_CMD and 'eval' its output
74 Log "$DTIMS_SCRIPT: \"${DTIMS_CMD%% *}\" started."
77 HASH set CDE_IMS_PID to 0 (IMS started, but its pid is unknown.)
80 Log "$DTIMS_SCRIPT: \"${DTIMS_CMD%% *}\" not found."
83 unset DTIMS_CMD DTIMS_SCRIPT
92 XCOMM ######################### eof #####################