shell-util: Pass the mutter context to the spawn child setup function

This was the type the function expected, but we were actually passing
the global context to it.

This didn't crash for some reason, but indeed it was wrong and we didn't
catch it because mutter side had not type-checks either

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3355>
(cherry picked from commit 9abad7f25f)
This commit is contained in:
Marco Trevisan (Treviño) 2024-05-31 16:46:14 +02:00 committed by Jonas Ådahl
parent 9bdbf5ee5b
commit 38da829351

View file

@ -873,7 +873,8 @@ shell_util_spawn_async_with_pipes_and_fds (const char *working_director
GPid child_pid = 0;
if (!g_spawn_async_with_pipes_and_fds (working_directory, argv, envp, flags,
spawn_child_setup, shell_global,
spawn_child_setup,
shell_global_get_context (shell_global),
stdin_fd, stdout_fd, stderr_fd,
source_fds, target_fds, n_fds,
&child_pid,