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

[Windows] Try to find a better workaround instead flashing the powershell windows during crc setup #3089

Open
praveenkumar opened this issue Mar 29, 2022 · 4 comments
Labels
status/pinned Prevents the stale bot from closing the issue

Comments

@praveenkumar
Copy link
Member

With #3088 crc daemon is started using task schedular but as of now when user perform crc setup then it flash a powershell window for a second because of limitation PowerShell/PowerShell#3028, In this issue there are other workaround is something like using vbs script (which detect as virus as per @anjannath ) and then https://stackoverflow.com/questions/23250505/how-do-i-create-an-executable-from-golang-that-doesnt-open-a-console-window-whe which use go ldflag for not using any console window #3088 (comment) . This isssue is to track if there is a better way.

@cfergeau
Copy link
Contributor

If we run crc daemon directly, then a console window is always shown. We try to avoid this through the use of powershell: powershell.exe -WindowStyle Hidden -Command %s, but there is still a console window flashing briefly as described in PowerShell/PowerShell#3028

@stale
Copy link

stale bot commented Jun 4, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status/stale Issue went stale; did not receive attention or no reply from the OP label Jun 4, 2022
@praveenkumar praveenkumar added status/pinned Prevents the stale bot from closing the issue and removed status/stale Issue went stale; did not receive attention or no reply from the OP labels Jun 6, 2022
@Drabenstein
Copy link

Hi,
I am experiencing the same with 2.8.0 (I gave up installing the newest version after many fails). I use Windows Terminal and despite the options mentioned by @cfergeau the powershell window (in Windows terminal) opens and keeps running with crc daemon for the whole login session. It is a bit cumbersome to move it every single time to the second virtual desktop and that still doesn't resolve an issue that I can close it accidentally (as it is running as Windows Terminal). Do you have any progress on this?

@cfergeau
Copy link
Contributor

cfergeau commented Nov 3, 2022

If the powershell window stays open, it's unexpected and it's a bug. However I don't think it happens on our machines, so I'm not sure how to debug this further.
This bug is about a window which is opened for less than 1 second, and automatically closes it self.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/pinned Prevents the stale bot from closing the issue
Projects
None yet
Development

No branches or pull requests

3 participants