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 += "/usr/bin/gnome-terminal";
- args += "-e";
- args += "/usr/bin/gdb";
- args += "-ex=r";
- args += "--args";
args += exe;
if (cg.execute_args.length > 0) {
var aa = cg.execute_args.split(" ");
}
}
- 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();