I use g_timeout_add to run the following code once per second:
void update (void)
// char temp;
output = popen("ls", "r");
// save output to temp char
g_print ("Hello World\n");
This will (of course) print useless "Hello World"s to the command line ...
The problem is that if I uncomment line 4 I'll only get one "Hello World"! It seems that the code only gets executed once ... what's the problem with chars and g_timeout_add?
Thank you for your help!