summaryrefslogtreecommitdiff
path: root/src/deamon.vala
diff options
context:
space:
mode:
authorAlessandro Ghedini <al3xbio@gmail.com>2012-03-05 12:19:59 +0100
committerAlessandro Ghedini <al3xbio@gmail.com>2012-03-05 12:19:59 +0100
commit98f3ef2689de06e8ab8b46a91acfa7dd2056a3a6 (patch)
treeb98e438ac1082925e12af6dfec6d9ebeb4e3035e /src/deamon.vala
parenta824c3e5bdab686901b02667609282e7d596a6af (diff)
Imported Upstream version 0.5.1
Diffstat (limited to 'src/deamon.vala')
-rw-r--r--src/deamon.vala21
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);