Skip to content
Tcl Source Code Artifact [639b8af9e5]
Login

Artifact [639b8af9e5]

Artifact 639b8af9e560beb1e68b5f5544952ef430d3c171:

Ticket change [639b8af9e5] - Open ticket [672526ffffffffff|672526ffff]: <i>X11 event lost with popen.</i> plus 4 other changes by davygrvy on 2003-01-28 16:00:16.
D 2003-01-28T16:00:16
J icomment Logged\sIn:\sYES\s\nuser_id=7549\n\nin\sthe\stest\sscript\sis\sthis\sline:\n\s\s\sset\sfid\s[open\s"|\snotepad"\sr\s]\n\nAs\snotepad.exe\sdoes\snot\swrite\snor\sread\sanything\sto\sthe\s\nstandard\schannels\sthat\swhere\sprovided\sto\sit\sby\sTcl\sin\s\nnotepad's\sSTARTUPINFO\swhen\sit\swas\slaunched,\sI\sdon't\s\nunderstand\swhy\spipes\sare\sbeing\sused\sfor\sthis.\n\nNormally\swhen\sa\sprocess\sis\slaunched\sfrom\swish,\sit\sis\slaunch\s\nin\sa\shidden\sand\sdetached\sconsole\s(hides\sthe\snew\sconsole\s\nwindow\sthat\swould\sbe\sblank\sanyway\sdue\sto\sthe\sredirection).\s\s\nBut\sas\snotepad.exe\sis\sa\sGUI\sapplication,\sit\scomes\sto\sthe\s\nforeground\s(not\sattached\sto\sthe\shidden\sconsole\swindow)\s\nbecause\sit\sruns\sin\sthe\swindows\ssubsystem\snot\sthe\sconsole\s\nsubsystem.\n\nGilles,\scould\syou\sexplain\sthe\sproblem\sa\sbit\smore?\s\sWhere\sis\s\npopen()?\s\sIn\sTcl\sit\sis\sTclpCreateProcess(),\sbut\sare\syou\srefering\s\nto\ssomething\sdifferent?\s\sWas\snotepad\sused\sjust\sas\sa\suniversal\s\nexample,\sbut\sthe\sproblem\sfor\syou\sis\swith\sa\sdifferent\s\napplication?\s\sCould\sa\s"launch"\scommand\sthat\sprovides\sa\s\ndifferent\sbehavior\swithout\sthe\spipe\smisunderstanding\sbe\smore\s\nwhat\syou\sdesire?\s\sI'm\sactually\ssurprised\sthat\s[gets]\sis\snot\s\nblocking\sfor\syou\s(or\sme).\n\nIMHO,\sthe\sfact\sthat\stcl\scan\sknowing\slaunch\sa\sGUI\sapplication\s\nand\shas\sthe\snerve\sto\sset\spipes\sto\sit,\sis\sa\sbad\sbehavior.\s\sTcl\s\nread\sthe\sPE\sheader\sin\sApplicationType(),\sso\sit\scould\shave\s\ngrabbed\sthe\ssubsystem\sbit\sto\ssee\sthat\sit\sis\sGUI.\s\sOne\sday,\sI\s\nwould\sto\ssee\sthis\schanged.\n
J login davygrvy
J mimetype text/plain
J status Open
J username davygrvy
K 672526ffffffffffffffffffffffffffffffffff
U davygrvy
Z 10e6c80a34ac3bc8ce98127f45cbd981