Skip to content

[pull] main from libsdl-org:main#19

Merged
pull[bot] merged 6 commits intoMainbaseT:mainfrom
libsdl-org:main
Dec 12, 2024
Merged

[pull] main from libsdl-org:main#19
pull[bot] merged 6 commits intoMainbaseT:mainfrom
libsdl-org:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Dec 12, 2024

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

thatcosmonaut and others added 6 commits December 11, 2024 16:38
SDL process is using `posix_spawnp` which already does the path lookup
so additional indirection via `env` is unnecessary
Simplifies logic of spawning the zenity process by avoiding allocations
of static strings
Introduce `const` where appropriate
SDL properties passed to the `SDL_Zenity_ShowFileDialogWithProperties`
may be destroyed/modified immediately upon the function return.
Therefore, we must copy all the strings and structures passed via
pointers; otherwise, the `SDL_ZenityFileDialog` thread attempting to
read them will cause data race.
Creating `argv` for zenity means we don't have to pass the building
blocks between threads which allows us to avoid deep copying some nested
structures. It also allows us to fail earlier in case of problems with
building the argument vector.
@pull pull bot added the ⤵️ pull label Dec 12, 2024
@pull pull bot merged commit ce7cb10 into MainbaseT:main Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants