Comment #7 on issue 586 by Shawn.P.Huang: ibus-1.2.0.20091014  在ubuntu  
9.04的工具栏下无法显示图标
http://code.google.com/p/ibus/issues/detail?id=586

下面是rpm包的触发脚本,贴上来给你参考以下。

%post
# recreate icon cache
touch --no-create %{_datadir}/icons/hicolor || :
[ -x %{_bindir}/gtk-update-icon-cache ] && \
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :

%{_sbindir}/alternatives --install %{_sysconfdir}/X11/xinit/xinputrc  
xinputrc
%{_xinputconf} 83 || :

export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2  
--makefile-install-rule %{_sysconfdir}/gconf/schemas/ibus.schemas >&
/dev/null || :

%pre
if [ "$1" -gt 1 ]; then
     export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
     gconftool-2  
--makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/ibus.schemas
> & /dev/null || :
fi

%preun
if [ "$1" -eq 0 ]; then
     export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
     gconftool-2  
--makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/ibus.schemas
> & /dev/null || :
fi

%postun
# recreate icon cache
touch --no-create %{_datadir}/icons/hicolor || :
[ -x %{_bindir}/gtk-update-icon-cache ] && \
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :

if [ "$1" = "0" ]; then
   %{_sbindir}/alternatives --remove xinputrc %{_xinputconf} || :
   # if alternative was set to manual, reset to auto
   [ -L %{_sysconfdir}/alternatives/xinputrc -a "`readlink
%{_sysconfdir}/alternatives/xinputrc`" = "%{_xinputconf}" ] &&
%{_sbindir}/alternatives --auto xinputrc || :
fi


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

回复