Start WSL GUI apps without command prompt
---date: Apr 20, 2018
tags:
- WSL
- GUI
language: English
---
When using this method to start application from desktop, a command prompt will always started at the back:
So there is a solution to the problem to stop command prompt to be shown along the apps.
Firstly, create a file with name runHidden.vbs
with following content (CRLF style required), and place it at some proper place:
1 | ' Simple command-line help. |
Then you can launch your GUI application using the command below:
1 | > wscript Address\to\runHidden.vbs bash -c <GUI application> |
This feature will also be included in the future release of wslu.
Source: https://stackoverflow.com/questions/41225711/wsl-run-linux-from-windows-without-spawning-a-cmd-window
Credit to mklement0