This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' NOTE: additional discussion & implementations can be found here: https://gist.github.com/ropnop/10800fb5066bd5144d9aaad55a8a4d18 | |
' https://medium.com/@bhupathy/install-terminator-on-windows-with-wsl-2826591d2156 | |
set shell = WScript.CreateObject("Shell.Application") | |
if not IsProcessRunning("vcxsrv.exe") then | |
shell.shellExecute "vcxsrv.exe", ":0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl -dpi auto", "C:\Program Files\VcXsrv\", "", 0 | |
end if | |
shell.ShellExecute "bash", "-c -l ""DISPLAY=:0 terminator""", "", "open", 0 | |
' https://stackoverflow.com/questions/19794726/vb-script-how-to-tell-if-a-program-is-already-running |