Accepting request 205590 from M17N
fix bnc#848694 for 13.1. don't know if this can get into by directly submitting to Factory. if not, please drop me a note in accept message OBS-URL: https://build.opensuse.org/request/show/205590 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fcitx?expand=0&rev=31
This commit is contained in:
commit
c64bee76cf
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Nov 2 07:31:38 UTC 2013 - i@marguerite.su
|
||||||
|
|
||||||
|
- fix bnc#848694: fcitx still use the old gtk_immodule_post/postun
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Sep 28 09:02:48 UTC 2013 - i@marguerite.su
|
Sat Sep 28 09:02:48 UTC 2013 - i@marguerite.su
|
||||||
|
|
||||||
|
24
fcitx.spec
24
fcitx.spec
@ -504,32 +504,16 @@ fdupes -n -q -r %{buildroot}
|
|||||||
%{__strip} %{buildroot}%{_libdir}/gtk-3.0/*/immodules/im-%{name}.so
|
%{__strip} %{buildroot}%{_libdir}/gtk-3.0/*/immodules/im-%{name}.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Convenient define for the scriplets
|
|
||||||
%if %{_lib} == lib64
|
|
||||||
%define _gtk2_query_immodules %{_bindir}/gtk-query-immodules-2.0-64
|
|
||||||
%define _gtk2_query_immodules_update_cache %{_gtk2_query_immodules} > %{_sysconfdir}/gtk-2.0/gtk64.immodules
|
|
||||||
%else
|
|
||||||
%define _gtk2_query_immodules %{_bindir}/gtk-query-immodules-2.0
|
|
||||||
%define _gtk2_query_immodules_update_cache %{_gtk2_query_immodules} > %{_sysconfdir}/gtk-2.0/gtk.immodules
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%post gtk2
|
%post gtk2
|
||||||
%{_gtk2_query_immodules_update_cache}
|
%gtk2_immodule_post
|
||||||
|
|
||||||
%postun gtk2
|
%postun gtk2
|
||||||
%{_gtk2_query_immodules_update_cache}
|
%gtk2_immodule_postun
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
||||||
|
|
||||||
%if %{_lib} == lib64
|
|
||||||
%define _gtk3_query_immodules %{_bindir}/gtk-query-immodules-3.0-64
|
|
||||||
%else
|
|
||||||
%define _gtk3_query_immodules %{_bindir}/gtk-query-immodules-3.0
|
|
||||||
%endif
|
|
||||||
%define _gtk3_query_immodules_update_cache %{_gtk3_query_immodules} --update-cache
|
|
||||||
|
|
||||||
%post gtk3
|
%post gtk3
|
||||||
%{_gtk3_query_immodules_update_cache}
|
%gtk3_immodule_post
|
||||||
|
|
||||||
# Add fcitx icons to gnome3 panel
|
# Add fcitx icons to gnome3 panel
|
||||||
TARGET="/usr/share/gnome-shell/js/ui/statusIconDispatcher.js"
|
TARGET="/usr/share/gnome-shell/js/ui/statusIconDispatcher.js"
|
||||||
@ -539,7 +523,7 @@ sed "/^const STANDARD_TRAY_ICON_IMPLEMENTATIONS/a \ 'fcitx': 'input-method',"
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%postun gtk3
|
%postun gtk3
|
||||||
%{_gtk3_query_immodules_update_cache}
|
%gtk3_immodule_postun
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
if ! type -p fcitx > /dev/null 2>&1 ; then
|
if ! type -p fcitx > /dev/null 2>&1 ; then
|
||||||
echo "fcitx is not available."
|
echo "fcitx is not installed. please run `sudo zypper in fcitx`."
|
||||||
PATH=$OLD_PATH
|
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -10,7 +9,6 @@ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
export LC_CTYPE=$LANG
|
export LC_CTYPE=$LANG
|
||||||
# So you can use either zh_CN.UTF-8 or zh_CN.GB2312
|
|
||||||
export XMODIFIERS="@im=fcitx"
|
export XMODIFIERS="@im=fcitx"
|
||||||
export GTK_IM_MODULE=fcitx
|
export GTK_IM_MODULE=fcitx
|
||||||
export GTK3_IM_MODULE=fcitx
|
export GTK3_IM_MODULE=fcitx
|
||||||
|
Loading…
Reference in New Issue
Block a user