GNOME Bugzilla – Bug 587895
spawn_async cannot inherit parent working directory
Last modified: 2009-09-16 18:48:02 UTC
According to the docs, passing an empty string ("") as the working directory for spawn_async should result in inheriting the parent working directory. However, the empty string is interpreted as a path instead.
Just pushed this to master: 2009-07-06 Daniel Elstner <danielk@openismus.com> Treat empty Glib::spawn*() working dir as unset * glib/src/spawn.ccg (Glib::spawn_async_with_pipes): If the working_directory argument is the empty string, pass a 0 pointer to the GLib C API to make it inherit the parent's working directory. This is fine as the empty string is not a valid directory name, and our documentation already says that it will be interpreted that way. (Glib::spawn_async): ditto, (Glib::spawn_sync): ditto. I have not merged it into any of the stable branches yet, however.
Merged into the glibmm-2-20 branch, and in today's glibmm 2.20.2 release.