mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-28 18:11:39 +00:00
config: working-directory expands ~/ prefix
Fixes #11336 Introduce a proper WorkingDirectory tagged union type with home, inherit, and path variants. The field is now an optional (?WorkingDirectory) where null represents "use platform default" which is resolved during Config.finalize to .inherit (CLI) or .home (desktop launcher).
This commit is contained in:
@@ -639,7 +639,7 @@ pub fn init(
|
||||
.shell_integration = config.@"shell-integration",
|
||||
.shell_integration_features = config.@"shell-integration-features",
|
||||
.cursor_blink = config.@"cursor-style-blink",
|
||||
.working_directory = config.@"working-directory",
|
||||
.working_directory = if (config.@"working-directory") |wd| wd.value() else null,
|
||||
.resources_dir = global_state.resources_dir.host(),
|
||||
.term = config.term,
|
||||
.rt_pre_exec_info = .init(config),
|
||||
|
||||
Reference in New Issue
Block a user