aboutsummaryrefslogtreecommitdiffstats
path: root/run_host.go
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2024-10-28 13:25:17 -0500
committerMatt Strapp <matt@mattstrapp.net>2024-10-28 13:25:17 -0500
commit2680c77ca9130a81c89d32b228b71f8b216d299c (patch)
treeb77030c9f64caba433567f3d991b991f2d167467 /run_host.go
parentAdd accessibility mode (diff)
downloadwsl-tui-2680c77ca9130a81c89d32b228b71f8b216d299c.tar
wsl-tui-2680c77ca9130a81c89d32b228b71f8b216d299c.tar.gz
wsl-tui-2680c77ca9130a81c89d32b228b71f8b216d299c.tar.bz2
wsl-tui-2680c77ca9130a81c89d32b228b71f8b216d299c.tar.lz
wsl-tui-2680c77ca9130a81c89d32b228b71f8b216d299c.tar.xz
wsl-tui-2680c77ca9130a81c89d32b228b71f8b216d299c.tar.zst
wsl-tui-2680c77ca9130a81c89d32b228b71f8b216d299c.zip
Add icon
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'run_host.go')
-rw-r--r--run_host.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/run_host.go b/run_host.go
index 4a74a7b..be7c158 100644
--- a/run_host.go
+++ b/run_host.go
@@ -10,5 +10,10 @@ import (
func command(distribution Distribution, config Config) (*exec.Cmd, error) {
// Append the additional arguments to the command
args := append([]string{"-d", distribution.Name}, config.WslArgs...)
+ // Set the title of the terminal window
+ err := exec.Command("cmd", "/c", "title", distribution.Name).Run()
+ if err != nil {
+ return nil, err
+ }
return exec.Command("wsl", args...), nil
}