[SCIM] Please help me test the newest SCIM code.

James Su suzhe at tsinghua.org.cn
Mon May 17 22:55:00 PDT 2004


Hi,
  This patch will work partially. If users start scim-setup in other 
way, the config still can not be reloaded automatically. I plan to let 
scim-setup connect to panel and tell it to reload the config directly.

  init scripts to start/stop/restart scim system daemon are the most 
important part. But beside that, some other issue must be resolved, for 
example:
1. How to managed the user tables for generic table im module? 
Originally, the user tables are stored in ~/.scim/user-tables, and table 
setup module can manage this tables directly. But if SCIM was started as 
a system wide daemon, these tables must be stored into an independent 
directory (eg. /var/lig/scim/), then hwo to manages these tables within 
scim-setup table setup module?
2. If we uses SCIM as a system daemon, then multiple users can use one 
scim instance at the same time. Is it necessary to separate the users' 
data to different file? Or it's ok to just store all user's data into 
one file? btw. IIIMF can distinguish different desktops (users).

Regards
James Su

Ming Hua wrote:

>On Sat, May 15, 2004 at 05:29:47PM +0800, James Su wrote:
>  
>
>>Hi,
>> Of course you may have a try. Any bug fixes and enhancements are 
>>welcome. Just give me your patch. Though I had already a plan to do this 
>>feature.
>>    
>>
>
>Well, I have no experience on Unix programming (signal, process stuff),
>so most likely I am doing things wrong.  But the following simple patch
>seems to work for me, any comments?
>
>Index: extras/panel/scim_panel_gtk.cpp
>===================================================================
>RCS file: /cvsroot/scim/scim-lib/extras/panel/scim_panel_gtk.cpp,v
>retrieving revision 1.65
>diff -u -r1.65 scim_panel_gtk.cpp
>--- extras/panel/scim_panel_gtk.cpp     13 May 2004 11:25:22 -0000      1.65
>+++ extras/panel/scim_panel_gtk.cpp     17 May 2004 21:52:53 -0000
>@@ -3911,8 +3911,10 @@
>         if (pid <= 0) break;
>     }
>  
>-    if (pid < 0)
>+    if (pid < 0) {
>         _scim_setup_running = false;
>+        action_reload_config ();
>+    }
>  
>     if (pid == 0)
>         signal (SIGCHLD, sigchld_handler);
>
>  
>
>> And, there is a more important feature in my todo list: make SCIM 
>>works as a system daemon. How do you think about it? Any comments are 
>>welcome.
>>    
>>
>
>What is the difference between the current SCIM daemon mode and a SCIM
>system daemon?  I know you need scripts for starting, stoping, and
>restarting a system daemon, but that's all I know.
>
>Ming
>2004.05.17
>
>--------------------------------------------------------------------------
>We used to think that if we know one, we know two, because one and one are
>two.  We are finding that we must learn a great deal more about ``and''.
>                                                  --- Sir Arthur Eddington
>--------------------------------------------------------------------------
>
>_______________________________________________
>scim mailing list
>scim at freedesktop.org
>http://freedesktop.org/mailman/listinfo/scim
>
>  
>




More information about the scim mailing list