Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deal with external editor which forks #4

Open
mytbk opened this issue Oct 8, 2016 · 1 comment
Open

deal with external editor which forks #4

mytbk opened this issue Oct 8, 2016 · 1 comment

Comments

@mytbk
Copy link
Owner

mytbk commented Oct 8, 2016

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
Copy link
Owner Author

mytbk commented Oct 8, 2016

For gvim, we need to use gvim --nofork

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant