WSL run linux from windows without spawning a cmd-window
Here’s a simpler solution, which, however, requires a WSH-based helper script, runHidden.vbs (see bottom section): wscript .\runHidden.vbs bash -c “DISPLAY=:0 xmessage ‘hello, world'” To apply @davv’s own launch-in-background technique to avoid creating a new bash instance every time: One-time action (e.g., at boot time): launch a hidden, stay-open bash window. This spawns 2 bash processes: … Read more