Previously, the default input method of X Desktop in Ubuntu7.10 was always Xim. For software such as Pidgin that supports input methods, right-click and select SCIM to enter Chinese. For software such as FireFox that does not support input methods, I had to open a separate Alt-F2 SCIM, although also solved the problem, but after all very not elegant. I found that the following files are critical:/etc/X11/xinit/xinput. d/scim-pinyin and then gedit:
Previously, the default input method for Ubuntu 7.10 X Desktop was always Xim. For software such as Pidgin that supports input methods, right-click and select SCIM to enter Chinese. For software such as FireFox that does not support input methods, I had to open a separate Alt-F2 SCIM, although also solved the problem, but after all very not elegant.
I found that the following files are critical:
/Etc/X11/xinit/xinput. d/scim-pinyin
So gedit:
If [-e/usr/lib/gtk-2.0/2.10.0/immodules/im-scim-bridge.so]; then
GTK_IM_MODULE = scim-bridge
Else
GTK_IM_MODULE = xim
Fi
If [-e/usr/lib/qt3/plugins/inputmethods/libqscim. so]; then
QT_IM_MODULE = scim
Else
QT_IM_MODULE = xim
Fi
We can see that if the scim-bridge package exists, scim under gtk is available; otherwise, xim is returned. Is it because I don't have the scim-bridge package? So I opened the system, system management, and got the new software package manager:
Select these scim-bridge and related packages, and then download and install them. At last, sudo im-switch-s scim-pinyin, and log in again!