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

wait: true doesn't work using Firefox #320

Open
Noxde opened this issue Jul 25, 2023 · 0 comments
Open

wait: true doesn't work using Firefox #320

Noxde opened this issue Jul 25, 2023 · 0 comments

Comments

@Noxde
Copy link

Noxde commented Jul 25, 2023

When trying to open a link having Firefox as the default browser, the "wait" option won't work and any code after will run anyway.
I'm using Linux btw

import open, { openApp } from "open";

// This fails to wait till firefox closes
await openApp("firefox", { wait: true });
console.log("Firefox quit");

// This waits till chrome closes
await openApp("google-chrome-stable", { wait: true });
console.log("Chrome quit");

// This fails to wait having firefox as the default browser
await open("https://google.com", { wait: true });
console.log("Google closed");

Firefox will open but the code below "await open" will run anyways

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