Skip to content

Instantly share code, notes, and snippets.

View brianmaher84's full-sized avatar

Brian Maher brianmaher84

View GitHub Profile
@brianmaher84
brianmaher84 / wsl_gui.txt
Last active October 9, 2024 15:28
Run Terminator terminal (or any WSL GUI) without leaving a windows shell open as parent process
So you want to launch a WSL GUI process but not leave a parent terminal that if closed killed your GUI application?
Step 1: Create a Powershell script file to launch your wsl application:
start-process powershell -ArgumentList "wsl.exe -- terminator" -WindowStyle hidden
Save it as something meaningful like terminator.ps1 in this example.
Step 2: Create a Windows shortcut to the Powershell script like below:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "terminator.ps1"