mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-25 18:59:48 +00:00
32a397f27a
The single-instance handoff (#282, #715) ran only on Windows; every other platform returned Claim::Alone, so on Linux each xdg-open or file-manager open started a second process and window. Linux and the BSDs now use the same Unix-socket exchange through std's UnixListener/UnixStream, with the socket in $XDG_RUNTIME_DIR/pdfcraft (never /tmp) and named after WAYLAND_DISPLAY or DISPLAY, so a launch on another display opens its own window. No XDG_RUNTIME_DIR: as before. macOS is unchanged (Apple events). winit ignores Focus on Wayland, so on a native Wayland window the handoff also requests user attention (xdg-activation), which desktops show in the taskbar. The hand-off, together and stale-socket tests now run on Linux/BSD too; a new test covers the display socket names. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>