summaryrefslogtreecommitdiff
path: root/src/xdp-utils.c
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2023-10-26 17:16:28 +0100
committerSimon McVittie <smcv@debian.org>2023-10-26 17:16:28 +0100
commit59f0aa5ea5b692e80c6854885cff625349a7a571 (patch)
tree55150e7be1a39a6ff0e4863e2e20237bfe87d107 /src/xdp-utils.c
parent67c8f59349195030e5a77167e8572ba10d595dc2 (diff)
parent44aabb66ffdaef8991af1e42367e43e68b1c72da (diff)
Update upstream source from tag 'upstream/1.18.1'
Update to upstream version '1.18.1' with Debian dir c3bddd9d0e9179b217cbb1b2bb3324c7fcc0ea09
Diffstat (limited to 'src/xdp-utils.c')
-rw-r--r--src/xdp-utils.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xdp-utils.c b/src/xdp-utils.c
index 840f716..dea82b9 100644
--- a/src/xdp-utils.c
+++ b/src/xdp-utils.c
@@ -397,8 +397,10 @@ xdp_app_info_rewrite_commandline (XdpAppInfo *app_info,
for (i = 1; commandline[i]; i++)
g_ptr_array_add (args, maybe_quote (commandline[i], quote_escape));
}
- else
+ else if (quote_escape)
g_ptr_array_add (args, g_shell_quote (app_info->id));
+ else
+ g_ptr_array_add (args, g_strdup (app_info->id));
g_ptr_array_add (args, NULL);
return (char **)g_ptr_array_free (g_steal_pointer (&args), FALSE);
@@ -2165,6 +2167,9 @@ app_info_map_pids (XdpAppInfo *app_info,
g_return_val_if_fail (app_info != NULL, FALSE);
g_return_val_if_fail (pids != NULL, FALSE);
+ if (app_info->kind == XDP_APP_INFO_KIND_HOST)
+ return TRUE;
+
if (app_info->kind != XDP_APP_INFO_KIND_FLATPAK)
{
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,