Skip to content

wait doesn't work on macOS #92

@kbrgl

Description

@kbrgl

wait doesn't seem to work on macOS. With an image file opened in Preview, the Promise fulfills only when the app is quit using Cmd+Q, and not when the window with the image is closed.

To reproduce:

opn("image.png").then(() => {
  // Won't run until Preview.app is quit with Cmd+Q
  console.log("Image viewer closed.")
}

I'm running opn on Electron.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions