Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a function to "Wait" for opened program exit (macOS) #25

Open
rnsc opened this issue Dec 2, 2019 · 0 comments
Open

Add a function to "Wait" for opened program exit (macOS) #25

rnsc opened this issue Dec 2, 2019 · 0 comments

Comments

@rnsc
Copy link

rnsc commented Dec 2, 2019

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):

-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.

Kind regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant