Drive one copy of an app by its pid.
Version 1.40.0 ·
Desktop tells a worktree's Debug build from the copy that shares its bundle id, and through a driving channel it scrolls, orbits and pans our own Debug builds.
Share this release
Drive one copy of an app by its pid. Desktop tells a worktree's Debug build from the copy that shares its bundle id, and through a driving channel it scrolls, orbits and pans our own Debug builds. https://cupertino.mgcrea.io/changelog/1.40.0/
Added
Drive one copy of an app by its pid. Every Desktop verb that takes
bundleIdalso takespid, so a worktree's Debug build can be driven beside the one from the main checkout, which shares its bundle id. With several copies running, a bundle id alone is refused rather than guessed, and the refusal lists each copy's pid, its path and whether it has a driving channel.apple_desktop_list_appsgives each app's path.apple_desktop_launchwithpathandchannel: truestarts a copy beside one already running and answers itspid, and quits it again if it opens no channel. A handle always reaches the copy it was read from. A pid whose application is out of reach is refused without saying what runs as it.Scroll, orbit and pan in our own Debug builds. Through a driving channel,
apple_desktop_scrollscrolls the view under a point by lines or by pixels, andapple_desktop_dragtakes the middle button, modifiers held throughout and pacing, which is how a canvas or a 3D view moves.apple_desktop_hovertakesfrom, so its moves carry their movement. All of them need swift-support-kit 1.25.0's channel, and to any other app they are refused with the reason rather than dropped.
Fixed
The driving channel no longer mixes up two connections or two Cupertinos. A command is appended in one write, only one from each Cupertino is in flight per app, its sequence numbers start from a random base, and the app's answers are read from where the last read ended rather than whole every 10 ms.