mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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:
parent
9bdbf5ee5b
commit
38da829351
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue