Re: help with GLib.spawn_async_with_pipes
- From: MohanR <mohan43u gmail com>
- To: Bhanu Chaudhary <bhanu423 gmail com>, javascript-list gnome org
- Subject: Re: help with GLib.spawn_async_with_pipes
- Date: Sun, 02 Aug 2015 13:24:37 +0800
On Fri, 2015-07-31 at 22:56 +0530, Bhanu Chaudhary wrote:
The documentation on https://people.gnome.org/~gcampagna/docs/GLib
-2.0/GLib.spawn_async_with_pipes.html seems a bit confusing as I have
just begun with gjs and gtk.
Here is example for GLib.spawn_async_with_pipes
https://gist.github.com/f33e639367c12edfd727
I think its better to use Gio.Subprocess[1] instead of GLib.spawn*
functions to work with child processes, because Gio.Subprocess gives
more control with streams and have proper bindings.
[1]
https://people.gnome.org/~gcampagna/docs/Gio-2.0/Gio.Subprocess.html
Thanks,
Mohan R
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]