config1.builder
[gitlive] / gitlive.js
index 1efa606..d60cb5a 100644 (file)
@@ -16,7 +16,7 @@ GLib        = imports.gi.GLib;
 //print(JSON.stringify(GI, null,4));
 // we add this in, as it appears to get lost sometimes if we set it using the ENV. variable in builder.sh
 // see the install instructions on how to override the default gir's
-GIRepository.Repository.prepend_search_path(GLib.get_home_dir() + '/.Builder/girepository-1.2');
+//GIRepository.Repository.prepend_search_path(GLib.get_home_dir() + '/.Builder/girepository-1.2');
 
 var Gio      = imports.gi.Gio;
 var Gtk      = imports.gi.Gtk;
@@ -67,12 +67,14 @@ StatusIcon.init();
 
 Notify.init("gitlive");
 
-GitMonitor.add(GitMonitor.gitlive);
-GitMonitor.start();
-
-WindowLog.start();
-
+GLib.timeout_add(GLib.PRIORITY_LOW, 500, function() {
+    // this should start after we have shown the icon...
+    GitMonitor.add(GitMonitor.gitlive);
+    GitMonitor.start();
+    
+    WindowLog.start();
+});
 
 Gtk.main();
-vv//icon.signal["activate"].connect(on_left_click);
+//icon.signal["activate"].connect(on_left_click);