Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Sources/parrot/Parrot.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ struct Run: ParsableCommand {
} catch {
FileHandle.standardError.write(Data("failed to register hotkey tap: \(error)\n".utf8))
FileHandle.standardError.write(Data("run `parrot setup` to configure permissions.\n".utf8))
throw ExitCode(1)
// Exit 0: a missing permission is not transient, and the LaunchAgent's
// KeepAlive would otherwise restart us into an endless prompt loop.
throw ExitCode(0)
}

let sigint = DispatchSource.makeSignalSource(signal: SIGINT, queue: .main)
Expand Down