Overview
| Artifact ID: | 639b8af9e560beb1e68b5f5544952ef430d3c171 |
|---|---|
| Ticket: | 672526ffffffffffffffffffffffffffffffffff
X11 event lost with popen. |
| User & Date: | davygrvy on 2003-01-28 16:00:16 |
Changes
- icomment:
Logged In: YES user_id=7549 in the test script is this line: set fid [open "| notepad" r ] As notepad.exe does not write nor read anything to the standard channels that where provided to it by Tcl in notepad's STARTUPINFO when it was launched, I don't understand why pipes are being used for this. Normally when a process is launched from wish, it is launch in a hidden and detached console (hides the new console window that would be blank anyway due to the redirection). But as notepad.exe is a GUI application, it comes to the foreground (not attached to the hidden console window) because it runs in the windows subsystem not the console subsystem. Gilles, could you explain the problem a bit more? Where is popen()? In Tcl it is TclpCreateProcess(), but are you refering to something different? Was notepad used just as a universal example, but the problem for you is with a different application? Could a "launch" command that provides a different behavior without the pipe misunderstanding be more what you desire? I'm actually surprised that [gets] is not blocking for you (or me). IMHO, the fact that tcl can knowing launch a GUI application and has the nerve to set pipes to it, is a bad behavior. Tcl read the PE header in ApplicationType(), so it could have grabbed the subsystem bit to see that it is GUI. One day, I would to see this changed.
- login: "davygrvy"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "davygrvy"