I have this vbs script that I've been using to run
gnome-terminalfrom my Windows 10 Desktop. It executes the following commands in
strArgs without showing terminal window that's executing the commands.
Set oShell = CreateObject ("Wscript.Shell") Dim strArgs strArgs = "wsl 'DISPLAY=:0 gnome-terminal" oShell.Run strArgs, 0, false
However, the script works only if I execute
DISPLAY=:0 gnome-terminal in my vanilla wsl terminal first. I'm not sure what its starting up in my processes that allows the script to work, but I really don't want to keep doing this every time I restart my computer.