Description of problem:
Using im-switch to change the system-wide or user-specific input
method completely overwrites existing content of /etc/sysconfig/i18n
and ~/.i18n respectively.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. start with non-empty and writeable /etc/sysconfig/i18n (or ~/.i18n)
2. set system wide input method as root with: im-switch -w -m method
(or im-switch -m method)
Existing content of /etc/sysconfig/i18n (or ~/.i18n) is completely
overwritten, leaving only the line: "XIM=method".
The "XIM=" line should be appended if it does not already exist.
Otherwise, it should be changed to the requested method.
The problem is caused by the following line in /usr/bin/im-switch:
echo "XIM=$1" > /tmp/imswitcher$$
It should be '>>' instead of '>'.
Thanks for catching this.
The fix has been committed for FC/devel and should appear
the next time im-sdk gets built.
Fixed FC2 package 11.4-46.svn1587 should be appearing in
updates/testing/2 before long.