Spawn.vala
authorAlan Knowles <alan@roojs.com>
Fri, 2 May 2014 10:22:46 +0000 (18:22 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 2 May 2014 10:22:46 +0000 (18:22 +0800)
Spawn.vala

index 676588e..b8d5f7e 100644 (file)
@@ -130,7 +130,7 @@ public class Spawn : Object
         this.cfg = cfg;
      
     
-        this.cfg.cwd =  this.cfg.cwd.length || GLib.Environment.get_home_dir();
+        this.cfg.cwd =  this.cfg.cwd.length  < 1 ? GLib.Environment.get_home_dir() : this.cfg.cwd;
         if (!this.cfg.args.length) {
             throw new Error("No arguments");
         }