Skip to content

with_detach fails silently on macOS #118

Description

@benzeneringlq

Current Behavior

platform call args result
macOS /usr/bin/open main.pdf -a hellohello silent after triggers /usr/bin/open successfully
Linux hellohello main.pdf error because fails triggers hellohello

Expected Behavior

open::with_detach( main.pdf , hellohello) should return an error, consistent with the behavior of running open main.pdf -a hellohello in the terminal.

background : typst/typst/issues/8061

Since both open-rs and the underlying '/usr/bin/open' command implement detachment, Would it make sense to remove one layer to simplify things? It might be better to implement this removal upstream.

I've gone through Byron/open-rs#46

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions