Probems opening /dev/tty when running from gmenu2x

Xiangfu Liu xiangfu at sharism.cc
Thu Dec 16 10:16:47 EST 2010


On 12/16/2010 06:40 PM, David Kuehling wrote:
>>>>>> "Xiangfu" == Xiangfu Liu <xiangfu at sharism.cc> writes:
> 
>> Hi I fight with this issue two days. but I just don't find a good
>> solution.
> 
>> any help will be great.
> 
> Ok, need to look at the gmenu2x sources to understand how program
> launching works.  I think it might do some redirection of stdin/stdout

here it is:
http://projects.qi-hardware.com/index.php/p/gmenu2x/source/tree/master/src/linkapp.cpp#L495


> for the programs it launches, using a /pipe/.  That would be wrong,
> gmenu2x needs to allocate a /pseudo-tty/ if it wants to pipe the tty
> output.  The easiest solution would be to directly connect stdin/stdout
> of the launched program to the foreground tty.
> 
> We might be able to workaround the issue for now by starting ash like:
> 
>  chvt 1; ash <> /dev/tty1
> 
> David


-- 
Best Regards
Xiangfu
-- Qi RSS feed, http://en.qi-hardware.com/feed/rss20.xml --




More information about the discussion mailing list


interactive