[console/zbrown/term-intent-2: 6/8] wip updated intent
- From: Zander Brown <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [console/zbrown/term-intent-2: 6/8] wip updated intent
- Date: Thu, 28 Jul 2022 01:11:23 +0000 (UTC)
commit 20d36d5ae7eccf181372c87d98083aa77640e4f2
Author: Zander Brown <zbrown gnome org>
Date: Fri Jul 22 21:00:50 2022 +0100
wip updated intent
src/kgx-application.c | 11 +++--------
src/org.freedesktop.Terminal1.xml | 8 ++++----
2 files changed, 7 insertions(+), 12 deletions(-)
---
diff --git a/src/kgx-application.c b/src/kgx-application.c
index 1d3e346..2070373 100644
--- a/src/kgx-application.c
+++ b/src/kgx-application.c
@@ -394,7 +394,7 @@ kgx_application_open (GApplication *app,
static void
handle_launch (XdgTerminal1 *xdg_term,
GDBusMethodInvocation *invocation,
- const char *exec,
+ const char *const *exec,
const char *working_directory,
const char *desktop_entry,
const char *const *env,
@@ -427,20 +427,15 @@ handle_launch (XdgTerminal1 *xdg_term,
title = g_strdup (g_app_info_get_name (G_APP_INFO (entry)));
} else {
- g_auto (GStrv) parts = NULL;
- g_autoptr (GError) error = NULL;
-
- g_shell_parse_argv (exec, NULL, &parts, &error);
-
window = g_object_new (KGX_TYPE_WINDOW,
"application", self,
"can-have-tabs", FALSE,
NULL);
- title = g_path_get_basename (parts[0]);
+ title = g_path_get_basename (exec[0]);
}
- kgx_application_add_terminal (self, window, timezone, working, exec, title);
+ kgx_application_add_terminal (self, window, timezone, working, (GStrv) exec, title);
xdg_terminal1_complete_launch_command (xdg_term, invocation);
}
diff --git a/src/org.freedesktop.Terminal1.xml b/src/org.freedesktop.Terminal1.xml
index 4932238..0c30322 100644
--- a/src/org.freedesktop.Terminal1.xml
+++ b/src/org.freedesktop.Terminal1.xml
@@ -1,10 +1,10 @@
<!DOCTYPE node PUBLIC
- "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
- "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd" >
+ "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+ "https://dbus.freedesktop.org/doc/introspect.dtd" >
<node>
<interface name="org.freedesktop.Terminal1">
<method name="LaunchCommand">
- <arg type='ay' name='exec' direction='in' />
+ <arg type='aay' name='exec' direction='in' />
<arg type='ay' name='working_directory' direction='in' />
<arg type='ay' name='desktop_entry' direction='in' />
<arg type='aay' name='env' direction='in' />
@@ -12,4 +12,4 @@
<arg type='a{sv}' name='platform_data' direction='in' />
</method>
</interface>
-</node>
\ No newline at end of file
+</node>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]