[console/zbrown/term-intent-2: 24/24] TODO: What is this warning about?




commit 142da08f59259c0ac661403d4aaa34b1c55bf05b
Author: Zander Brown <zbrown gnome org>
Date:   Thu Jul 28 02:10:56 2022 +0100

    TODO: What is this warning about?

 src/kgx-application.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/src/kgx-application.c b/src/kgx-application.c
index 5ce0d4d..6496a0d 100644
--- a/src/kgx-application.c
+++ b/src/kgx-application.c
@@ -405,6 +405,8 @@ handle_launch (XdgTerminal1          *xdg_term,
   KgxWindow *window = NULL;
   guint32 timezone = GDK_CURRENT_TIME;
 
+  g_debug ("Got launch");
+
   if (working_directory) {
     working = g_file_new_for_path (working_directory);
   }
@@ -430,12 +432,17 @@ handle_launch (XdgTerminal1          *xdg_term,
                            "can-have-tabs", FALSE,
                            NULL);
 
+    // TODO: Maybe discount things like sh, python?
     title = g_path_get_basename (exec[0]);
   }
 
   kgx_application_add_terminal (self, window, timezone, working, (GStrv) exec, title);
 
-  xdg_terminal1_complete_launch_command (xdg_term, invocation);
+  g_debug ("…complete launch");
+
+  xdg_terminal1_complete_launch_command (xdg_term, g_object_ref (invocation));
+
+  g_debug ("done");
 }
 
 


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