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

Fix for OS X and unix command line to launch external editor. #66

Merged
merged 2 commits into from Sep 28, 2019

Conversation

Kmanfi
Copy link
Contributor

@Kmanfi Kmanfi commented Sep 24, 2019

Quotes around file name in OS X comman line doesn't work.
Popen works better with list of parameters.
Found solution here.
https://docs.python.org/3.4/library/subprocess.html
17.5.1.2. Popen Constructor

This PR is not tested with Windows.

@IlgarLunin
Copy link
Collaborator

I'll test it on windows today and merge. Thank you!

@IlgarLunin
Copy link
Collaborator

@Kmanfi are you test it on mac?

@Kmanfi
Copy link
Contributor Author

Kmanfi commented Sep 25, 2019

Yes, tested with latest OS X, MacBook Pro.

@IlgarLunin
Copy link
Collaborator

Problem here with shlex.split is if file name will contain spaces. I believe your path to text editor does not contain them?

@Kmanfi
Copy link
Contributor Author

Kmanfi commented Sep 25, 2019

I'll test path with spaces.

@IlgarLunin
Copy link
Collaborator

Also try path without quotes at all. Content of line edit is already a string

@Kmanfi
Copy link
Contributor Author

Kmanfi commented Sep 27, 2019

Tested on OS X. Windows?

@IlgarLunin IlgarLunin merged commit ae600f6 into wonderworks-software:master Sep 28, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants