Date: Sun, 12 Apr 2015 03:30:25 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 199366] misc/mc 4.8.14 fails with "Cannot create pipe streams" when running shell commands using the Filtered View menu item on the File menu Message-ID: <bug-199366-13-oJKgCvDnrX@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-199366-13@https.bugs.freebsd.org/bugzilla/> References: <bug-199366-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199366 Ben Woods <woodsb02@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |adamw@FreeBSD.org Flags|maintainer-feedback?(woodsb |maintainer-feedback+ |02@gmail.com) | --- Comment #4 from Ben Woods <woodsb02@gmail.com> --- You are correct that mc does not use the PATH environment variable to search for the executable when performing a Filtered View command. The filtered view command is run with the mc_popen function in lib/utilunix.c. This function runs the process with the glib function g_spawn_async_with_pipes, which by default requires the full path of the executable. Details defined here: https://developer.gnome.org/glib/stable/glib-Spawning-Processes.html#g-spawn-async-with-pipes The attached patch adds the G_SPAWN_SEARCH_PATH to the g_spawn_async_with_pipes function call, which causes mc to use the PATH environment variable to search for the executable. This fixes/improves this behaviour. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-199366-13-oJKgCvDnrX>