From 8e7ecfe35ec52fc4e70d73f7f593a6351018c6ca Mon Sep 17 00:00:00 2001 From: Jamie Chapman-Brown Date: Thu, 22 Jun 2023 15:53:08 -0400 Subject: [PATCH] fix: on darwin wait when opening --- open/exec_darwin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/open/exec_darwin.go b/open/exec_darwin.go index 16160e6..b33770f 100644 --- a/open/exec_darwin.go +++ b/open/exec_darwin.go @@ -1,3 +1,4 @@ +//go:build darwin // +build darwin package open @@ -7,7 +8,7 @@ import ( ) func open(input string) *exec.Cmd { - return exec.Command("open", input) + return exec.Command("open", "-w", input) } func openWith(input string, appName string) *exec.Cmd {