Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions switchboard/Services/TerminalService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ class TerminalService {
let process = Process()
process.executableURL = ghosttyURL
process.arguments = args
process.currentDirectoryURL = URL(fileURLWithPath: NSHomeDirectory())

do {
try process.run()
Expand Down
7 changes: 4 additions & 3 deletions tests/TerminalServiceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ final class TerminalServiceTests: XCTestCase {
XCTAssertFalse(service.requiresAccessibilityPermissions(.ghostty))
}

// MARK: - Warp and Ghostty AppleScript templates use System Events
// MARK: - Warp AppleScript template uses System Events

// These templates must use System Events keystrokes (the reason they need
// Accessibility permissions in the first place).
// Warp has no AppleScript dictionary, so its script drives input via System Events
// keystrokes (the reason it needs Accessibility permissions).
// Ghostty is launched via CLI Process, not AppleScript, so it has no System Events usage.

func testWarpScript_UsesSystemEvents() {
let script = AppleScriptTemplates.warp(profileName: "test")
Expand Down
Loading