Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

macOS open-document events ignore every path after the first

Open PathGao opened this issue 4 months ago • 0 comments

Problem

The macOS RunEvent::Opened handler reads only urls.first(), and startup loading consumes only args[0]. Opening several Markdown documents in one Finder/open invocation therefore discards every path after the first even in a single, already-running bundle.

This is distinct from #212's second-copy/single-instance Apple Event loss: it fixes the direct multi-document path while that upstream timing limitation remains.

Expected behavior

Every file URL delivered in a macOS open-document event reaches the receiving viewer and is opened through the normal tab flow, preserving the delivered order.

Scope

Store and drain all startup paths, emit all delivered paths to an existing viewer, and load all startup arguments. Add a regression test for the Rust-to-frontend path collection contract.

PathGao avatar Jul 31 '26 05:07 PathGao