[gnome-terminal] client: legacy: Warn if no startup ID provided



commit 52f32f962a5ed34f8c31042f2f8276dc1710cc99
Author: Christian Persch <chpe src gnome org>
Date:   Sun Oct 16 11:27:02 2016 +0200

    client: legacy: Warn if no startup ID provided

 src/terminal.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/terminal.c b/src/terminal.c
index 5f0363f..149c480 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -386,6 +386,9 @@ main (int argc, char **argv)
   /* Do this here so that gdk_display is initialized */
   if (options->startup_id == NULL)
     options->startup_id = terminal_client_get_fallback_startup_id ();
+  /* Still NULL? */
+  if (options->startup_id == NULL)
+    g_printerr("Warning: DESKTOP_STARTUP_ID not set and no fallback available.\n");
 
   display = gdk_display_get_default ();
   display_name = gdk_display_get_name (display);


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