After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 587895 - spawn_async cannot inherit parent working directory
spawn_async cannot inherit parent working directory
Status: RESOLVED FIXED
Product: glibmm
Classification: Bindings
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Daniel Elstner
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2009-07-06 14:10 UTC by jessevdk@gmail.com
Modified: 2009-09-16 18:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jessevdk@gmail.com 2009-07-06 14:10:38 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.
Comment 1 Daniel Elstner 2009-07-06 15:08:59 UTC
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.
Comment 2 Daniel Elstner 2009-09-16 18:48:02 UTC
Merged into the glibmm-2-20 branch, and in today's glibmm 2.20.2 release.