Hi,

I have attached a small patch for script-fu-server that makes the
server return to the clients the output of the commands executed, just
like the script-fu-console does.

Is the patch ok? Any chance to apply it the mainline? Should I make a
bug-report and attach the patch to it?

Thanx,

Ionutz
Index: script-fu-server.c
===================================================================
--- script-fu-server.c	(revision 28270)
+++ script-fu-server.c	(working copy)
@@ -200,6 +200,7 @@
   run_mode = params[0].data.d_int32;
 
   ts_set_run_mode (run_mode);
+  ts_set_print_flag (1);
 
   switch (run_mode)
     {
@@ -473,7 +474,8 @@
     {
       error = FALSE;
 
-      g_string_assign (response, ts_get_success_msg ());
+      if(response->len == 0)
+        g_string_assign (response, ts_get_success_msg ());
 
       time (&clock2);
       server_log ("Request #%d processed in %f seconds, finishing on %s",
_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Reply via email to