Hi, - The problem is caused by warning message print by zenity.
im-config uses zenity to create GTK dialog and uses stderr to
catch the result.
In line 219-220, $IM_CONFIG_MENULIST is "zenity ..."
menulist_eval "$IM_CONFIG_MENULIST" >$IM_CONFIG_TMPFILE
IM_CONFIG_NAME=$(cat $IM_CONFIG_TMPFILE)
And in menulist_eval
menulist_eval () {
if [ $IM_CONFIG_DIALOG = "console" ]; then
# console
eval "$1"
else
# GTK GUI
eval "$1" 1>&2
fi
}
Since zenity generates warning message "Gtk-Message: ...",
$IM_CONFIG_NAME will set to "Gtk-Message: ...". And if $IM_CONFIG_NAME
is not a valid input method name, im-config cannot config input method
and will do nothing.
--
ChangZhuo Chen (陳昌倬) <[email protected]>
http://czchen.info/
Key fingerprint = EC9F 905D 866D BE46 A896 C827 BE0C 9242 03F4 552D
signature.asc
Description: Digital signature

