[PC-BSD Commits] r18803 - in pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd: . gconf-xml xstartup
svn at pcbsd.org
svn at pcbsd.org
Tue Sep 4 08:53:07 PDT 2012
Author: kris
Date: 2012-09-04 15:53:07 +0000 (Tue, 04 Sep 2012)
New Revision: 18803
Added:
pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/
pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/chinese-zh_CN-gconf.xml
pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/chinese-zh_TW-gconf.xml
pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/japanese-gconf.xml
pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/korean-gconf.xml
Modified:
pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/xstartup/enable-ibus.sh
Log:
Add new iBus gconf config files and patch
Submitted by: Yamashiro, Jun
Index: pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/chinese-zh_CN-gconf.xml
===================================================================
--- pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/chinese-zh_CN-gconf.xml 2012-09-04 15:52:51 UTC (rev 18802)
+++ pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/chinese-zh_CN-gconf.xml 2012-09-04 15:53:07 UTC (rev 18803)
Property changes on: pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/chinese-zh_CN-gconf.xml
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/xml
Index: pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/chinese-zh_TW-gconf.xml
===================================================================
--- pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/chinese-zh_TW-gconf.xml 2012-09-04 15:52:51 UTC (rev 18802)
+++ pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/chinese-zh_TW-gconf.xml 2012-09-04 15:53:07 UTC (rev 18803)
Property changes on: pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/chinese-zh_TW-gconf.xml
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/xml
Index: pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/japanese-gconf.xml
===================================================================
--- pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/japanese-gconf.xml 2012-09-04 15:52:51 UTC (rev 18802)
+++ pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/japanese-gconf.xml 2012-09-04 15:53:07 UTC (rev 18803)
Property changes on: pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/japanese-gconf.xml
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/xml
Index: pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/korean-gconf.xml
===================================================================
--- pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/korean-gconf.xml 2012-09-04 15:52:51 UTC (rev 18802)
+++ pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/korean-gconf.xml 2012-09-04 15:53:07 UTC (rev 18803)
Property changes on: pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/gconf-xml/korean-gconf.xml
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/xml
Modified: pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/xstartup/enable-ibus.sh
===================================================================
--- pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/xstartup/enable-ibus.sh 2012-09-04 15:52:51 UTC (rev 18802)
+++ pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/xstartup/enable-ibus.sh 2012-09-04 15:53:07 UTC (rev 18803)
@@ -2,13 +2,37 @@
# Set this to YES if you want to manually enable ibus
FORCEIBUS="NO"
+IBUS_GCONF_PATH=/usr/local/share/pcbsd/gconf-xml
# Do not modify below
##########################################################################
+ibus_initialize() {
+ if [ ! -f ${HOME}/.gconf/desktop/ibus/%gconf.xml ]
+ then
+ mkdir -p ${HOME}/.gconf/desktop/ibus
+ cp ${IBUS_GCONF_PATH}/$1-gconf.xml ${HOME}/.gconf/desktop/ibus/%gconf.xml
+ fi
+}
+
# Check if this lang needs ibus
case ${GDM_LANG} in
- ja_JP*|ko_KR*|zh_CN*|zh_TW*) ENABLE="YES" ;;
+ ja_JP*)
+ ibus_initialize "japanese"
+ ENABLE="YES"
+ ;;
+ ko_KR*)
+ ibus_initialize "korean"
+ ENABLE="YES"
+ ;;
+ zh_CN*)
+ ibus_initialize "chinese-zh_CN"
+ ENABLE="YES"
+ ;;
+ zh_TW*)
+ ibus_initialize "chinese-zh_TW"
+ ENABLE="YES"
+ ;;
*) ENABLE="NO" ;;
esac
More information about the Commits
mailing list