macos: rename surface config working directory to not be ambiguous

This commit is contained in:
Mitchell Hashimoto
2026-03-06 15:15:30 -08:00
parent 221a1639af
commit 259a41d503
2 changed files with 2 additions and 2 deletions

View File

@@ -78,7 +78,7 @@
<property name="font size" code="GScF" type="real" description="Font size in points.">
<cocoa key="fontSize"/>
</property>
<property name="working directory" code="GScD" type="text" description="Working directory for the terminal process.">
<property name="initial working directory" code="GScD" type="text" description="Initial working directory for the terminal process.">
<cocoa key="workingDirectory"/>
</property>
<property name="command" code="GScC" type="text" description="Command to execute instead of the configured shell.">

View File

@@ -38,7 +38,7 @@ extension Ghostty.SurfaceConfiguration: ScriptRecord {
if let rawWorkingDirectory = raw["workingDirectory"] {
guard let workingDirectory = rawWorkingDirectory as? String else {
throw RecordParseError.invalidType(parameter: "working directory", expected: "text")
throw RecordParseError.invalidType(parameter: "initial working directory", expected: "text")
}
if !workingDirectory.isEmpty {