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

hides subprocess windows on os.system = "nt" #1148

Merged
merged 3 commits into from
Aug 13, 2021

Conversation

ReimarBauer
Copy link
Member

No description provided.

@ReimarBauer
Copy link
Member Author

I verified these changes on my guacamole windows MSS 5.0 installation by copying the changed utils.py to the installed location.
If you have an option to try it out before the next release I'm interested in Feedback.

mslib/utils.py Outdated
@@ -101,6 +101,19 @@
UR.define("pptv = 1e-12 fraction")


def windows_subprocess_startupinfo():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could simplify the code quite a bit by returning "None" for non-"nt" OS and always supplying it as an argument.
Alternatively, we could shim the subprocess.run command (https://en.wikipedia.org/wiki/Shim_(computing))

Functionally this is fine.

Copy link
Member Author

@ReimarBauer ReimarBauer Aug 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I first thought I just replace it by EasyProcess, https://github.com/ponty/EasyProcess
But that is an API change and it won't go into 5.0.1. I packaged this for conda-forge for pyvirtualdisplay as a dependency.

That this happens now only on windows desktop start is the reason I choosed that filter. But anyway if it breaks after next installation something else we get faster a 5.0.2.

@joernu76 joernu76 self-requested a review August 13, 2021 13:50
@joernu76 joernu76 merged commit 1fe6977 into Open-MSS:stable Aug 13, 2021
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.

Starting MSS under Windows opens confusing mamba and/or conda windows
2 participants