Probems opening /dev/tty when running from gmenu2x

David Kuehling dvdkhlng at
Thu Dec 16 05:40:08 EST 2010

>>>>> "Xiangfu" == Xiangfu Liu <xiangfu at> 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
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

GnuPG public key:
Fingerprint: B17A DC95 D293 657B 4205  D016 7DEF 5323 C174 7D40
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the discussion mailing list