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

Ming Hua minghua at rice.edu
Mon May 17 15:05:28 PDT 2004


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
--------------------------------------------------------------------------



More information about the scim mailing list