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
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too