[flimp] popen r+, in ExternalGui .cxx

From: George Kourousias <george.kourousias_at_elettra.trieste.it>
Date: Thu, 29 Oct 2009 11:14:46 +0100

Problem is ExternalGui (flimp 0.9):
I've tried Effects/sigmoidal-contrast, and the default (4) output
appears OK.
convert -sigmoidal-contrast 4 - - returned 0

But when I click GUI, there's a problem:
Failed to start flimpgui -s Contrast -r 1,8

so in ExternalGui.cxx f->cmd_pipe == NULL. I checked the option of popen
and i changed r+ to w
line 20: f->cmd_pipe = popen(f->gui_cmd, "w");
and then flimpgui appears with the slider on the correct value (4), and
byt scrolling it outputs:
convert -sigmoidal-contrast 4 - - returned 0
convert -sigmoidal-contrast 6 - -

convert -sigmoidal-contrast 4.61 - -

convert -sigmoidal-contrast 5.28 - -

but without a result appearing in the main flimp tabs.

it seems that popen is monodirectional r xor w, in many systems. "r+" is
not valid.

any hints or suggestions would be appreciated.

cheers,

george
Received on Thu Oct 29 2009 - 11:14:46 CET

This archive was generated by hypermail 2.2.0 : Thu Oct 29 2009 - 11:15:01 CET