Skip to content

Saved clips from protected folders may freeze launch again #24

Open

Description

@pitis

Found while fact-checking the README in #23. Not yet seen on a real Mac.

What may happen
Clips stores copied Finder files as paths. At launch, ClipsManager.start (called from AppHub, on the main thread) runs load(), which calls FileManager.default.fileExists on every saved path (Sources/Perch/Services/ClipsManager.swift, load()). pruneMissing() does the same when Clips opens, and ClipsPage asks QuickLook for thumbnails.

If one of those paths is in Desktop, Documents or Downloads and Perch doesn't have access to that folder yet, touching it can block on a macOS permission prompt. Done on the main thread at launch, that's the same freeze #21 fixed for the Desktop, by another route. It also means the README's line about copied files possibly prompting (#23) may be real.

How to check, on the real Mac

  1. Turn screenshots in Clips off, and make sure Perch has no Documents access (System Settings › Privacy & Security › Files and Folders).
  2. Copy a file in Finder from ~/Documents, so it shows up in Clips.
  3. Quit Perch and launch it with open /Applications/Perch.app. Watch for a prompt and for the panel not responding.
  4. Open Clips and watch again.

Likely fix, if it reproduces
Check the saved paths off the main thread (as #21 does for the screenshot folder), and don't stat files in protected folders the user hasn't granted. For example, keep the clip and let opening or dragging it fail gracefully instead of pruning it at launch.

Activity

  1. added
    bug
    verify
    on Nov 8, 2026
  2. pitis commented on Nov 8, 2026

    @pitis
    OwnerAuthor

    Autopilot opened #27 for review.

  3. added a commit that references this issue on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugverify

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions