Re: Get the stdout of a sub process in an extension ?

Self-response as I found an answer :
I used glib introspection and Glib.spawn_command_line_sync to start my process and get the result.

On Wed, Oct 27, 2010 at 4:13 PM, Thomas Bouffon <thomas bouffon gmail com> wrote:
I'm writing an extension which gives me the time for the next bus close to my office in the status tray.
I successfully created and displayed a button close to what the clock is (I want to start an app when clicking on it).
My problem is to fill the label with the next bus time. I already have an executable which gives the time in stdout.

Maybe I am not doing things the right way and shoud use Dbus instead ? or are there any other options to put things in the status tray ?

Thank you very much,

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