src/openwin/lib/locale/common/imsscript/S505multi
author yongsun
Wed, 06 Aug 2008 09:40:25 +0800
changeset 210 425922e1bd99
parent 206 a44692e27b28
child 222 42a24d4b8e11
permissions -rw-r--r--
Added unset DTSTARTIMS in S505multi script.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     1
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     2
# CDDL HEADER START
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     3
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").  
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     7
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     8
# You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    10
# See the License for the specific language governing permissions
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    11
# and limitations under the License.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    12
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    14
# file and include the License file at src/OPENSOLARIS.LICENSE.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    18
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    19
# CDDL HEADER END
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    20
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    21
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    22
# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    23
# Use is subject to license terms.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    24
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    25
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    26
# @(#)S505multi 1.3 2005/11/24 SMI
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    27
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    28
# Start iiimx for each desktop.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    29
206
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    30
start_iiim() {
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    31
    if [ -x /usr/bin/iiimx ]; then
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    32
        /usr/bin/iiimx -iiimd
210
425922e1bd99 Added unset DTSTARTIMS in S505multi script.
yongsun
parents: 206
diff changeset
    33
        unset DTSTARTIMS
206
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    34
    fi
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    35
}
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    36
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    37
start_scim() {
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    38
    if [ -x /usr/bin/scim ]; then
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    39
        XMODIFIERS=@im=SCIM
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    40
        export XMODIFIERS
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    41
        /usr/bin/scim -d
210
425922e1bd99 Added unset DTSTARTIMS in S505multi script.
yongsun
parents: 206
diff changeset
    42
        unset DTSTARTIMS
206
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    43
    fi
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    44
}
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    45
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    46
if [ "x" = "x$GTK_IM_MODULE" ]; then
0
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    47
    GTK_IM_MODULE=iiim
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    48
    export GTK_IM_MODULE
206
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    49
    start_iiim
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    50
elif [ "iiim" = $GTK_IM_MODULE ] || [ "xim" = $GTK_IM_MODULE ]; then
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    51
    start_iiim
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    52
elif [ "scim" = $GTK_IM_MODULE ]; then
a44692e27b28 Refined the S505multi script to start iiim or scim according to the GTK_IM_MODULE env variable.
yongsun
parents: 0
diff changeset
    53
    start_scim
0
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    54
fi