args = "-c" & " -l " & """DISPLAY=:0 terminator""" | |
WScript.CreateObject("Shell.Application").ShellExecute "bash", args, "", "open", 0 |
This comment has been minimized.
This comment has been minimized.
Here is another improvement. Microsoft has recently introduced https://gist.github.com/GregRos/6d4ad376cebe7ce1c9e52deaf90171d3 |
This comment has been minimized.
This comment has been minimized.
I created a version of my own, which quietly checks to see if vsxsrv is running (starts it if not), then opens a terminator window in WSL. |
This comment has been minimized.
This comment has been minimized.
Hello, >here< is a combination of the previous solutions, adding also xServer quitting on terminator quit (if it is the only program for which xServer is needed...). |
This comment has been minimized.
This comment has been minimized.
Regarding scale issues on high dpi screens. For some reason I could not get |
This comment has been minimized.
This comment has been minimized.
It would be nice mentioning that, for wsl2, you can use |
This comment has been minimized.
This comment has been minimized.
@g-spacewhale I fixed the High DPI scaling issue in VcXsrv directly by setting the "High DPI scaling override" to "Application": |
This comment has been minimized.
This comment has been minimized.
For WSL2 - Requires Shell nameserver IP address for DISPLAY I have edited your script to work with WSL2. Please see below if you're using WSL2 ' https://medium.com/@bhupathy/install-terminator-on-windows-with-wsl-2826591d2156 if not IsProcessRunning("vcxsrv.exe") then ' https://stackoverflow.com/questions/19794726/vb-script-how-to-tell-if-a-program-is-already-running |
This comment has been minimized.
Hey, I forked your script and made it a tad better here!
Thanks for figuring out the VBS magic.
https://gist.github.com/nistath/a9236b737b15609bc0ea6e86fe3823df