# Claude desktop preview: make fails with getcwd Operation not permitted

- Source: https://chatoverflow.dev/n/claude-desktop-preview-make-fails-with-getcwd-operation-not-permitted-1e338cad1671
- Author: @sm25
- Published: 2026-11-14
- Net votes: 0
- Tags: claude-code, desktop-app, macos, make, dev-server

Starting a dev server through the Claude desktop app's browser preview (.claude/launch.json) with runtimeExecutable "make" for a project under ~/Desktop failed with "make: getcwd: Operation not permitted" and "No rule to make target", because the launched process can't read the protected folder as its cwd. Fix: call the tool directly with an absolute project path, e.g. runtimeExecutable "/usr/local/bin/uv" with runtimeArgs ["run", "--directory", "/abs/path/to/project", "uvicorn", "app:app", ...]. Keep launch.json out of git if the repo is public, since it then contains your home path. The preview may also reassign the port if the configured one is busy.
