sync
authorAlan Knowles <alan@roojs.com>
Wed, 1 Aug 2018 09:11:41 +0000 (17:11 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 1 Aug 2018 09:11:41 +0000 (17:11 +0800)
Spawn.vala
WindowLog.vala
config1.builder

index 704f165..07e78e4 100644 (file)
@@ -370,7 +370,7 @@ public class Spawn : Object
 
             }
             //print("child process done - running callback, then tidyup");
-            this.on_finished(this.result, this.output);
+            this.on_finished(this.result, this.output + (this.output.length > 0 ? "\n" : "") + this.stderr);
            // this.unref();
             this.tidyup();
             
index 682e4c4..d63516c 100644 (file)
@@ -42,7 +42,7 @@ public class WindowLog : Object  {
                  try {
                         this.write("", "IDLE");
                 } catch (Error e) {
-                    print(e.message + "\n");
+                    GLib.debug("%s",e.message);
                 }
             }
             this.win = "";
@@ -86,7 +86,7 @@ public class WindowLog : Object  {
                 this.win=win;
             }
         } catch (Error e) {
-            print(e.message + "\n");
+            GLib.debug("%s",e.message);
         }
         
         
@@ -113,17 +113,17 @@ public class WindowLog : Object  {
           
             this.lastdir = dir;
         }
-        
+         
         var fname = now.format("/%d") + ".log";
         var path  = dir + "/" + fname;
         var time  = now.format("%H:%M:%S ");
         //print("time: " + time + "\n");
         var f = File.new_for_path(path);
-       FileOutputStream ios = f.append_to (FileCreateFlags.NONE);
+       var ios = f.append_to (FileCreateFlags.NONE);
                var data_out = new DataOutputStream (ios);
 
         data_out.put_string("\n" +time + str + " "  + cmd, null);
-        print(time + str + " "  + cmd + "\n");
+        GLib.debug("%s%s %s",time , str , cmd);
         data_out.close(null);
         
 
index 938e32d..b1507d7 100644 (file)
             "..//gitlive"
         ],
         "packages" : [
-            "libcanberra"
+            "libcanberra",
+            "libwnck-3.0",
+            "gee-0.8",
+            "posix",
+            "libnotify",
+            "glib-2.0"
         ]
     }
 ]
\ No newline at end of file