3e5574a760
- merge changelogs. - spec clean to make it pure openSUSE to submit to M17N. - set _service to localonly. - server deleted openSUSE unused sources. - Upstream fix issue 511, now builds on 11.4. - Change pyphrase.mb back upon Upstream request. - Fix local fcitx.googlecode.com resolv error because of #GFW. - Change pyphrase.mb to Sougou's Dict. - Update source to git, enable opencc for Traditional & Simplified Chinese Switch. - Fixed a bug for type words in comment box of facebook while using firefox visit facebook. Thanks to CSSlayer. - Fixed a bug with dbus. - update to 4.1.1 - upstream version 4.1.0 - Add start up script, README and template - add gtk-immodule-xim require OBS-URL: https://build.opensuse.org/request/show/102707 OBS-URL: https://build.opensuse.org/package/show/M17N/fcitx?expand=0&rev=14
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
OLD_PATH=$PATH
|
|
PATH=/usr/bin:/usr/X11R6/bin:/opt/kde3/bin:$PATH
|
|
|
|
if ! type -p fcitx > /dev/null 2>&1 ; then
|
|
echo "fcitx is not available."
|
|
PATH=$OLD_PATH
|
|
return 1
|
|
fi
|
|
|
|
#when skim installed, Autostart must be "false".
|
|
#here we move $HOME/.kde/share/config/skimrc to skimrc.orig.fcitx
|
|
case "$WINDOWMANAGER" in
|
|
*kde*)
|
|
if type -p skim > /dev/null 2>&1 \
|
|
&& ! grep -i -q "^[[:space:]]*Autostart.*=.*false" $HOME/.kde/share/config/skimrc
|
|
then
|
|
if [ -f $HOME/.kde/share/config/skimrc.orig.fcitx ] ; then
|
|
mv -f $HOME/.kde/share/config/skimrc $HOME/.kde/share/config/skimrc.orig.fcitx
|
|
chmod 777 $HOME/.kde/share/config/skimrc.orig.fcitx
|
|
fi
|
|
cat > $HOME/.kde/share/config/skimrc << __END
|
|
[General]
|
|
Autostart=false
|
|
__END
|
|
chmod 777 $HOME/.kde/share/config/skimrc
|
|
else
|
|
# do nothing
|
|
:
|
|
fi
|
|
;;
|
|
*)
|
|
# do nothing
|
|
;;
|
|
esac
|
|
|
|
eval `dbus-launch --sh-syntax --exit-with-session`
|
|
export LC_CTYPE=$LANG
|
|
# So you can use either zh_CN.UTF-8 or zh_CN.GB2312
|
|
export XMODIFIERS="@im=fcitx"
|
|
export GTK_IM_MODULE=fcitx
|
|
export QT_IM_SWITCHER=imsw-multi
|
|
export QT_IM_MODULE=xim
|
|
fcitx -d
|
|
|
|
PATH=$OLD_PATH
|
|
|
|
# success:
|
|
return 0
|