I was wondering if you were open to add a function or a flag to Wait for the opened program to close.
It's possible on macOS, with -W (-n and -F could also be used):
-W Causes open to wait until the applications it opens (or that were already open) have exited. > Use with the -n flag to allow open to function as an appropriate app for the $EDITOR environment
-n Open a new instance of the application(s) even if one is already running.`
-F Opens the application "fresh," that is, without restoring windows. Saved persistent state is lost, except for Untitled documents.`
I have a use case of this and discovered your library, but I resorted to going back to exec.Command() to be able to specify this.
Now, xdg-open doesn't have a wait for feature, and I don't think windows does either.
So I understand if this feature is not desired.
Hello,
I was wondering if you were open to add a function or a flag to Wait for the opened program to close. It's possible on macOS, with -W (-n and -F could also be used):
I have a use case of this and discovered your library, but I resorted to going back to exec.Command() to be able to specify this.
Now, xdg-open doesn't have a wait for feature, and I don't think windows does either. So I understand if this feature is not desired.
Kind regards,