author | yongsun |
Wed, 06 Aug 2008 09:40:25 +0800 | |
changeset 210 | 425922e1bd99 |
parent 206 | a44692e27b28 |
child 222 | 42a24d4b8e11 |
permissions | -rw-r--r-- |
0 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
5 |
# Common Development and Distribution License (the "License"). |
|
6 |
# You may not use this file except in compliance with the License. |
|
7 |
# |
|
8 |
# You can obtain a copy of the license at src/OPENSOLARIS.LICENSE |
|
9 |
# or http://www.opensolaris.org/os/licensing. |
|
10 |
# See the License for the specific language governing permissions |
|
11 |
# and limitations under the License. |
|
12 |
# |
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
# file and include the License file at src/OPENSOLARIS.LICENSE. |
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
|
21 |
# |
|
22 |
# Copyright 2006 Sun Microsystems, Inc. All rights reserved. |
|
23 |
# Use is subject to license terms. |
|
24 |
# |
|
25 |
# |
|
26 |
# @(#)S505multi 1.3 2005/11/24 SMI |
|
27 |
# |
|
28 |
# Start iiimx for each desktop. |
|
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 | 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 | 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 | 47 |
GTK_IM_MODULE=iiim |
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 | 54 |
fi |