Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] No way to call spawn_async with envp = NULL #1450

Open
andy128k opened this issue Jun 30, 2024 · 2 comments
Open

[BUG] No way to call spawn_async with envp = NULL #1450

andy128k opened this issue Jun 30, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@andy128k
Copy link
Contributor

Bug description

glib::spawn_async takes a slice for envp parameter. When it is called with empty slice it passes non-null pointer to g_spawn_async.

But g_spawn_async treats differently cases when env is empty and when it is null.

@andy128k andy128k added the bug Something isn't working label Jun 30, 2024
@sdroege
Copy link
Member

sdroege commented Jul 1, 2024

This is basically the same as gtk-rs/gir#1133 (which has a WIP PR). The way forward here for now would be to manually implement this function correctly until that PR is done.

@bilelmoussaoui what was the status with that PR?

@bilelmoussaoui
Copy link
Member

This is basically the same as gtk-rs/gir#1133 (which has a WIP PR). The way forward here for now would be to manually implement this function correctly until that PR is done.

@bilelmoussaoui what was the status with that PR?

I won't have the time to finish it, maybe in few months

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants