[PC-BSD Testing] iBus(CJK input method) cannot working on 9.0Beta1.5

Yamashiro, Jun yamajun at ofug.net
Fri Sep 9 08:42:27 PDT 2011


Hi lists,

9.0 Beta1.5 cannot input Japanese text.
(But, ibus-daemon is running correctly)

Currently, iBus-related environment variable set in
/usr/local/share/pcbsd/xstartup/enable-ibus.sh (It called from ~/.xprofile)
variables: GTK_IM_MODULE, GTK_IM_MODULE_FILE, QT_IM_MODULE, XMODIFIERS,
 
But, these variables not set in actually.  iBus cannot work correctly.

Reason:
/bin/sh cannot receive enviroment variable without from child script.

Do this scripts.

$ edit child.sh
#!/bin/sh
# child.sh
export CHILD=child

# end of file

$ edit parent.sh
#!/bin/sh
# parent.sh
./child.sh	# cannot receive $CHILD from child.sh
echo "'$CHILD' at parent"

. ./child.sh	# work correctly
echo "'$CHILD' at parent"
# end of file

$ chmod +x parent.sh child.sh
$ ./parent.sh
'' at parent
'child' at parent
$


Solution:
Apply attached patch to ~/.xprofile and /usr/local/share/pcbsd/xstartup/*.sh

1. Start shell script with shell built-in command "."
   for iBus related environment variable
2. Replace "exit" to "return" for command ".".


regards,
-- 
Yamashiro, Jun			Email: yamajun at ofug.net
Okinawa FreeBSD Users Group
-------------- next part --------------
A non-text attachment was scrubbed...
Name: startup-fix.patch
Type: application/octet-stream
Size: 2451 bytes
Desc: not available
URL: <http://lists.pcbsd.org/pipermail/testing/attachments/20110910/fd65aad3/attachment.obj>


More information about the Testing mailing list