Accepting request 124645 from home:MargueriteSu:branches:M17N
OBS-URL: https://build.opensuse.org/request/show/124645 OBS-URL: https://build.opensuse.org/package/show/M17N/fcitx?expand=0&rev=32
This commit is contained in:
parent
3e51f582e2
commit
9c4ef9a74c
3
fcitx-4.2.4.1.tar.bz2
Normal file
3
fcitx-4.2.4.1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:27d21fc2a37255219b0ff643be72614f3a3314b46c9d7a263e965b096efded52
|
||||
size 904487
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0889c6ea3dd2066ca582ac3cd5b18c293ee01123d2a454a5731af9da42a24542
|
||||
size 11133679
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 12 07:22:31 UTC 2012 - i@marguerite.su
|
||||
|
||||
- update to 4.2.4.1
|
||||
* urgent fix for compose key.
|
||||
- use new xim.d-fcitx.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 3 13:05:53 UTC 2012 - i@marguerite.su
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
%define libver -4_2_4
|
||||
|
||||
Name: fcitx
|
||||
Version: 4.2.4
|
||||
Version: 4.2.4.1
|
||||
Release: 0
|
||||
Summary: A Flexible Input Method Framework for CJK
|
||||
License: GPL-2.0+
|
||||
|
55
xim.d-fcitx
55
xim.d-fcitx
@ -1,48 +1,21 @@
|
||||
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
|
||||
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
|
||||
# Avoid relying on autolaunch to improvise D-Bus sessions for each process
|
||||
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
|
||||
eval `dbus-launch --sh-syntax --exit-with-session`
|
||||
fi
|
||||
|
||||
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
|
||||
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=fcitx
|
||||
fcitx -d
|
||||
|
||||
# success:
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user