-
Notifications
You must be signed in to change notification settings - Fork 221
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
hide 7z/kindlegen consoles on Windows #656
Conversation
@VampiroMedicado D'oh! Sorry for not noticing this Windows-OS-only quirk.
You can generate an exe with
|
Seems like the removal of What about using a utils function |
Subprocess.run and popen have the same args. |
Actually, the proper way to do this is to use the
arg in subprocess.run |
Yeah, it sounds better now. I was checking the docs and found nothing about how I'll update the PR tomorrow. |
I was basing this on the stackoverflow answer, but it seems to not be true. Also, the
Sounds good, it just needs to check for Windows-OS or not. |
The current solution works right on Mac? I only have a Windows desktop. |
Yes, Mac and Linux don't create extra console windows already. This is Windows OS only issue. Just check the os before importing. |
Hi, @axu2 happy new year 🎉 I made some changes, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments, I can confirm it runs on macOS. Thanks for the great work!
@axu2 changes done. Tested on Windows without issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, I'll include these fixes in the next release!
I've decided to backport this fix to v5.6.5. V5.7.0 is in prerelease and gets fewer downloads than v5.6.5 |
Hide the subprocess that runs kindlegen.exe when the program is performing the .mobi creation, to prevent the user from losing focus on what they are doing while a conversion is being done.