diff options
Diffstat (limited to 'src/deamon.vala')
-rw-r--r-- | src/deamon.vala | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/deamon.vala b/src/deamon.vala index ceecf1b..b622028 100644 --- a/src/deamon.vala +++ b/src/deamon.vala @@ -24,16 +24,26 @@ namespace GnomePie { ///////////////////////////////////////////////////////////////////////// public class Deamon : GLib.Object { + + ///////////////////////////////////////////////////////////////////// + /// The current version of Gnome-Pie + ///////////////////////////////////////////////////////////////////// + + public static string version; ///////////////////////////////////////////////////////////////////// /// The beginning of everything. ///////////////////////////////////////////////////////////////////// public static int main(string[] args) { + version = "0.5.1"; + Logger.init(); Gdk.threads_init(); Gtk.init(ref args); Paths.init(); + + message("Welcome to Gnome-Pie " + version + "!"); // create the Deamon and run it var deamon = new GnomePie.Deamon(); @@ -90,6 +100,9 @@ public class Deamon : GLib.Object { message("Removed file \"%s\"", Paths.pie_config); if (GLib.FileUtils.remove(Paths.settings) == 0) message("Removed file \"%s\"", Paths.settings); + + Logger.stats("LAUNCH RESET"); + return; } @@ -107,11 +120,17 @@ public class Deamon : GLib.Object { var data = new Unique.MessageData(); data.set_text(open_pie, open_pie.length); app.send_message(Unique.Command.ACTIVATE, data); + + Logger.stats("LAUNCH PIE " + open_pie); + return; } message("Gnome-Pie is already running. Sending request to open config menu."); app.send_message(Unique.Command.ACTIVATE, null); + + Logger.stats("LAUNCH CONFIG"); + return; } @@ -139,7 +158,6 @@ public class Deamon : GLib.Object { PieManager.init(); Icon.init(); - ThemedIcon.init(); // launch the indicator this.indicator = new Indicator(); @@ -150,6 +168,7 @@ public class Deamon : GLib.Object { // finished loading... so run the prog! message("Started happily..."); + Logger.stats("LAUNCH " + version); // open pie if neccessary if (open_pie != null) PieManager.open_pie(open_pie); |