[SCIM] Improved scim-panel-kde (about socket config)

Cougar liuspider at yahoo.com
Mon Apr 12 18:16:25 PDT 2004


Hello everyone,

Finally, I decided to "incoporate" KConfig into SCIM
like this: implement the config retrieving socket API
in scim-panel-kde and let scim use socket config (of
course I need to specify the socket address in
environmental vairable) to connect to scim-panel-kde

now you can have a try like this:
scim-panel-kde -d (this must be started first)
SCIM_CONFIG_SOCKET_ADDRESS="local:/tmp/scim-panel-socket"
scim -c socket -d

scim will happily use what you are configured in
scim-panel-kde setup UI (though at present there are
few settings about SCIM itself, more will come)

On the other hand, I found a potentional problem: the
first time, you ask SCIM to use socket config to
connect to scim-panel-kde, many settings are empty (do
not exist in kconfig files), but as long as the socket
config module connected to the server (in this case is
scim-panel-kde) and it can receive info from server,
it will think it can read the settings successfully so
do not fall back to the "default" value.

I think it would be better to extend the socket config
API to specify whether it read something from the
config file (success) or just empty values (fail).

At present, the work around is: at the first time you
decide to migrate into scim-panel-kde, to do this:

echo "[SCIM]" >> ~/.kde/share/config/skimrc
cat ~/.scim/config.zh_CN* >>
~/.kde/share/config/skimrc

Any suggestions and feedbacks are highly appreciated.

Cougar

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the scim mailing list