libsysprof: Actually set spawnable flags to inherit stdin

The code calculated flags but never actually set them on the spawnable,
so the `inherit-stdin` property did not work.

Fixes: 8799d2f0ca
See: https://gitlab.gnome.org/GNOME/sysprof/-/issues/76#note_1531919
This commit is contained in:
Jan Alexander Steffens (heftig)
2022-10-07 17:48:48 +00:00
parent 403e363670
commit 6212396483

View File

@ -666,6 +666,7 @@ sysprof_local_profiler_start_after_auth (SysprofLocalProfiler *self)
g_ptr_array_add (env, NULL);
sysprof_spawnable_set_flags (spawnable, flags);
sysprof_spawnable_set_environ (spawnable, (const gchar * const *)env->pdata);
sysprof_spawnable_append_args (spawnable, (const gchar * const *)priv->spawn_argv);