sync
[app.Builder.js] / src / Palete / ValaSource.vala
index 6c73886..f8d05b2 100644 (file)
@@ -390,7 +390,12 @@ namespace Palete {
                                print("Missing output file: %s\n",exe);
                                return;
                        }
-                       string args[] = {};
+                       string[] args = "/usr/bin/gnome-terminal -x /usr/bin/gdb -ex=r --args".split(" ");
+
+                       
+                       // runs gnome-terminal, with gdb .. running the application..
+                       // fixme -- need a system/which
+                       
                        args += exe;
                        if (cg.execute_args.length > 0) {
                                var aa = cg.execute_args.split(" ");
@@ -399,11 +404,13 @@ namespace Palete {
                                }
                        }
 
-                   print("OUT: %s\n\n----\nERR:%s", output, stderr);
+                   print("OUT: %s\n\n----\nERR:%s\n", output, stderr);
                    
                    // should be home directory...
                    
-            var exec = new Spawn("/tmp", args);
+                   
+                   
+            var exec = new Spawn(GLib.Environment.get_home_dir() , args);
             exec.detach = true;
                    exec.run();