Hi,

> I'm trying to write a simple GTK3 front-end for smbpasswd and I'm trying
> to use «GLib.Process.spawn_async_with_pipes» based on the «-s» option of
> smbpasswd which allows it to use stdin for password prompt. 
> How can I send the data to «GLib.Process.spawn_async_with_pipes»' stdin?

You need to set up an IOWatch on the resulting standard_input fd and
check if the app is ready for receiving input; you'll probably also
connect to stdout and stderr to properly interact with the command-line
app.


_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to