//<script type="text/javascript">
+
+
+/** NOT CURRENTLY BEING WORKED ON !!! */
+
+
GLib= imports.gi.GLib;
Gio = imports.gi.Gio;
-Roo = imports['Roo.js'].Roo;
-File = imports['File.js'].File;
-console = imports['console.js'].console;
+File = imports.File.File;
+console = imports.console.console;
+
+Seed.include('Date.js');
-imports['Date.js'].load(Date);
+//DateExtra = imports.DateExtra.DateExtra;
+
// these should come from args
'vte' : 'vte',
'WebKit' :'WebKit',
'gconf' : 'gconf',
+
+ //'gtop',
+ //'panelapplet',
+ //'epiphany'
+
+
+
//'gupnp', -- needs patch
// 'gnome-keyring' -- ndeds patch
// gnome-vfs -- needs patch
GLib.SpawnFlags.DO_NOT_REAP_CHILD + GLib.SpawnFlags.SEARCH_PATH ,
null, null, ret);
- var ctx = GLib.main_loop_new (null, false);
+ var ctx = new GLib.MainLoop.c_new (null, false);
var started = false;
GLib.child_watch_add(GLib.PRIORITY_DEFAULT, ret.child_pid, function(pid, status) {
retval.done = true;
if (started) {
console.log("Ending LOOP");
- GLib.main_loop_quit(ctx);
+ ctx.quit();
}
});
var x = new GLib.String();
- var cstatus = GLib.io_channel_get_buffer_condition(ch);
- cstatus = GLib.io_channel_get_flags (ch)
+ var cstatus = ch.get_buffer_condition();
+ cstatus = ch.get_flags (ch)
//Seed.print("WAITING INPUT?" + prop+':'+cstatus);
//var status = GLib.io_channel_read_line_string (ch, x, null);
- var status = GLib.io_channel_read_line_string (ch, x);
+ var status = ch.read_line_string (x);
//Seed.print(prop + ":INPUT:" + status);
if (!retval.done) {
started = true;
console.log("STARTING LOOP");
- GLib.main_loop_run(ctx, false); // wait fore exit?
+ ctx.run(); // wait fore exit?
}
readstr(out_ch, outfile, 'output');
readstr(err_ch, errfile, 'error');