Skip to content

macOS: Cmd+V after copying file in Finder pastes icon path instead of file path #56

Description

@Chee-0806

Describe the bug

On macOS, when you copy a file in Finder (Cmd+C) and paste into OTTY (Cmd+V), the terminal pastes the file icon path or other non-file-path string instead of the full POSIX file path.

To Reproduce

  1. Open Finder, select any file
  2. Press Cmd+C to copy the file
  3. Switch to OTTY
  4. Press Cmd+V to paste
  5. The pasted string is something like the icon path rather than /Users/.../file.txt

Expected behavior

Cmd+V should paste the full POSIX file path, matching Terminal.app, iTerm2, Warp, and Ghostty.

Actual behavior

An icon path or other pasteboard representation gets pasted instead of the file path.

Environment

  • macOS (Apple Silicon / Intel)
  • OTTY version: 0.1.0

Root cause (likely)

macOS Finder puts multiple representations on NSPasteboard when copying a file:

  • public.file-url — the actual file URL (should be converted to POSIX path)
  • public.utf8-plain-text — the file name only
  • icon / image data

OTTY appears to pick the wrong pasteboard type. The fix should prioritize public.file-url and resolve it to a POSIX path string before pasting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Fields

    No fields configured for Bug.

    Projects

    Status
    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions