[gnome-builder] main: log XDG_CURRENT_DESKTOP to simplify troubleshooting quirks



commit 768895717a2f463d16fb68e31dca7010c1c7c939
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jan 8 20:34:00 2018 -0800

    main: log XDG_CURRENT_DESKTOP to simplify troubleshooting quirks
    
    This detects the XDG_CURRENT_DESKTOP and logs it along with our gtk version
    to simplify tracking down issues. Running with -v will display this
    information.

 src/main.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 74cfa3a..d2e1014 100644
--- a/src/main.c
+++ b/src/main.c
@@ -103,6 +103,7 @@ main (int   argc,
       char *argv[])
 {
   IdeApplication *app;
+  const gchar *desktop;
   int ret;
 
   /* Setup our gdb fork()/exec() helper */
@@ -132,7 +133,15 @@ main (int   argc,
    */
   early_ssl_check ();
 
-  g_message ("Initializing with Gtk+ version %d.%d.%d.",
+  /* Log what desktop is being used to simplify tracking down
+   * quirks in the future.
+   */
+  desktop = g_getenv ("XDG_CURRENT_DESKTOP");
+  if (desktop == NULL)
+    desktop = "unknown";
+
+  g_message ("Initializing with %s desktop and Gtk+ %d.%d.%d.",
+             desktop,
              gtk_get_major_version (),
              gtk_get_minor_version (),
              gtk_get_micro_version ());


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]