<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 09/09/11 11:42, Yamashiro, Jun wrote:
    <blockquote cite="mid:20110910004227.76e4a3f1.yamajun@ofug.net"
      type="cite">
      <pre wrap="">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,
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Testing mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Testing@lists.pcbsd.org">Testing@lists.pcbsd.org</a>
<a class="moz-txt-link-freetext" href="http://lists.pcbsd.org/mailman/listinfo/testing">http://lists.pcbsd.org/mailman/listinfo/testing</a>
</pre>
    </blockquote>
    <br>
    Thanks for finding this! Committed!<br>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Kris Moore
PC-BSD Software
iXsystems</pre>
  </body>
</html>