diff options
Diffstat (limited to 'misc/sunpinyin/profile.d/sunpinyin.sh')
-rw-r--r-- | misc/sunpinyin/profile.d/sunpinyin.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/misc/sunpinyin/profile.d/sunpinyin.sh b/misc/sunpinyin/profile.d/sunpinyin.sh new file mode 100644 index 0000000000000..a53367bbeffc9 --- /dev/null +++ b/misc/sunpinyin/profile.d/sunpinyin.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# SunPinyin is a statistical language model based Chinese input method, which +# was firstly developed by Sun Beijing Globalization team. + +if [ -x /usr/bin/xsunpinyin ]; then + # Enable legacy X applications to use sunpinyin: + export XMODIFIERS="@im=xsunpinyin" + # Enable Qt/KDE applications to use sunpinyin. + export QT_IM_MODULE=XIM + # Enable GTK applications to use sunpinyin: + export GTK_IM_MODULE=XIM + # Make sunpinyin start automatically if the "magic key" Ctrl-Space is pressed: + export XIM_PROGRAM="/usr/bin/xsunpinyin -d" +fi + |