gtk-rs / gtk-rs-core

Rust bindings for GNOME libraries
https://gtk-rs.org/gtk-rs-core
MIT License
272 stars 103 forks source link

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

Open andy128k opened 3 days ago

andy128k commented 3 days ago

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.

sdroege commented 2 days ago

This is basically the same as https://github.com/gtk-rs/gir/issues/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 commented 2 days ago

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