Re: gspawn_async_with_pipes questions



On Thu, 26 May 2005 07:59:17 +0200
Colossus <colossus 3000 it> wrote:

Olivier Sessink wrote:

I use this for example to close the stderr of the child and make it a
copy of the stdout.

Thank you Olivier, but how to read the output of the command unzip -l
so to put it into the gtk_tree_view ?

provide a variable for the standard output, and open that as g_io_channel
(g_io_channel_unix_new or something like that), make it non-blocking,
register a callback, and read the contents from the callback into the listmodel.

regards,
        Olivier Sessink




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]