gnome: print client version and git ref in log

Refs #75395

Change-Id: I8b53f19f4c3015a7e2497f6904bd1c4ce76d145f
diff --git a/src/ring_client.cpp b/src/ring_client.cpp
index 1ee4711..6b28752 100644
--- a/src/ring_client.cpp
+++ b/src/ring_client.cpp
@@ -54,6 +54,7 @@
 #include "ringnotify.h"
 #include "config.h"
 #include "utils/files.h"
+#include "revision.h"
 
 struct _RingClientClass
 {
@@ -188,6 +189,9 @@
     RingClient *client = RING_CLIENT(app);
     RingClientPrivate *priv = RING_CLIENT_GET_PRIVATE(client);
 
+    g_message("Ring GNOME client version: %d.%d.%d", VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
+    g_message("git ref: %s", RING_CLIENT_REVISION);
+
     /* make sure that the system corresponds to the autostart setting */
     autostart_symlink(g_settings_get_boolean(priv->settings, "start-on-login"));
     g_signal_connect(priv->settings, "changed::start-on-login", G_CALLBACK(autostart_toggled), NULL);