[uim-commit] r1467 - branches/0.4/uim

ekato at freedesktop.org ekato at freedesktop.org
Sat Sep 10 23:04:46 PDT 2005


Author: ekato
Date: 2005-09-10 23:04:43 -0700 (Sat, 10 Sep 2005)
New Revision: 1467

Modified:
   branches/0.4/uim/uim-module-manager.c
Log:
* uim/uim-module-manager.scm (main) : Port r1466 from trunk.


Modified: branches/0.4/uim/uim-module-manager.c
===================================================================
--- branches/0.4/uim/uim-module-manager.c	2005-09-11 06:03:16 UTC (rev 1466)
+++ branches/0.4/uim/uim-module-manager.c	2005-09-11 06:04:43 UTC (rev 1467)
@@ -35,6 +35,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
+#include <sys/types.h>
+#include <sys/stat.h>
 
 #include "config.h"
 
@@ -301,6 +303,14 @@
   if (!uim_scm_require_file("uim-module-manager.scm"))
     exit(1);
 
+  if (path) {
+    char *extra_file = concat(path, "/installed-modules.scm");
+    struct stat st;
+    if (stat(extra_file, &st) != -1)
+      uim_scm_require_file(extra_file);
+    free(extra_file);
+  }
+
   /* for unregister-all */
   if (!module_names)
     module_names = "";



More information about the uim-commit mailing list