-
Notifications
You must be signed in to change notification settings - Fork 859
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
"Hidden window" mode #510
Comments
I've tried Same thing with Also tried |
I've finally succeded with the following:
However, there's still a quick window flash when the command starts, but have no idea how to remove it. |
I second that. The PowerShell shortcut works but it has usability issues. |
From build 17666 release notes
Maybe it's what you are looking for. |
I don't seem to have build 17666 yet. :-) |
Only Insiders in the fast Ring can try it. Others will need to wait for Fall 2018 Update. |
Thank you. I'll wait. |
They functionality is will still launch a console. It it mainly a way to launch a particular binary without invoking it through $SHELL -c command. Useful if you hosed your /etc/passwd file or set your default shell to one that doesn't work. |
@benhillis I see, thanks for the clarification. |
But that was fixed, no? |
The former, not the later. Let's say you're a sadomasochist and set your root user's shell to echo. |
Got it. That makes sense. It is useful for other stuff too 😉. |
@therealkenc - Exactly! |
Now you just need to fix up the signature of WslLaunch. It looks like:
It is interactive unless the caller |
This ranks high on my list of hacks:
CreateObject("Wscript.Shell").Run "" & WScript.Arguments(0) & "", 0, False
wscript "[SCRIPT_LOCATION]\runhidden.vbs" "wsl code ~" The window flash is gone! |
It would be nice to be able to run GUI utilities without having the console window displayed. For example, I've made a shortcut to
C:\Windows\System32\bash.exe -c "DISPLAY=localhost:0.0 uxterm"
, but when I run it I end up with two windows (the extra one being unresponsive).The text was updated successfully, but these errors were encountered: