[console/zbrown/term-intent-2: 4/4] TODO: What is this warning about?
- From: Zander Brown <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [console/zbrown/term-intent-2: 4/4] TODO: What is this warning about?
- Date: Mon, 1 Aug 2022 23:47:53 +0000 (UTC)
commit 30fbfc9c7a05130c0405a3d16eebb704acfe0ab6
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]