Back to Rustdesk

File pate on macOS

libs/clipboard/src/platform/unix/macos/README.md

1.4.6721 B
Original Source

File pate on macOS

MacOS cannot use fuse because of macfuse is not supported by default.

  1. Use a temporary file /tmp/rustdesk_<uuid> as a placeholder in the pasteboard.
  2. Uses fsevent to observe files paste operation. Then perform pasting files.

Files

pasteboard_context.rs

The context manager of the paste operations.

item_data_provider.rs

  1. Set pasteboard item.
  2. Create temp file in /tmp/.rustdesk_*.

paste_observer.rs

Use fsevent to observe the paste operation with the source file /tmp/.rustdesk_*.

paste_task.rs

Perform the paste.