fqterm icon indicating copy to clipboard operation
fqterm copied to clipboard

deal with external editor which forks

Open mytbk opened this issue 9 years ago • 1 comments
trafficstars

For editors such as gvim, the process first forks and exits, so the QProcess state will be: NotRunning -- (run gvim) --> Starting --> Running --> Not running (clear the tmp file, and the new process edits this file) -- (run second time) --> Starting --> Running --> Not running (and send the file edited last time).

mytbk avatar Oct 08 '16 15:10 mytbk

For gvim, we need to use gvim --nofork

And we shouldn't write the BOM to the tmp file.

mytbk avatar Oct 08 '16 16:10 mytbk