From 65fd02817ea277d8024235861e56f27414ae7063 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 14 Jan 2024 14:53:00 -0800 Subject: [PATCH] macos: only load config files on macos target --- macos/Sources/Ghostty/Ghostty.App.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/macos/Sources/Ghostty/Ghostty.App.swift b/macos/Sources/Ghostty/Ghostty.App.swift index 68cd77d3a..b075bfe04 100644 --- a/macos/Sources/Ghostty/Ghostty.App.swift +++ b/macos/Sources/Ghostty/Ghostty.App.swift @@ -126,10 +126,14 @@ extension Ghostty { return nil } - // Load our configuration files from the home directory. + // Load our configuration from files, CLI args, and then any referenced files. + // We only do this on macOS because other Apple platforms do not have the + // same filesystem concept. + #if os(macOS) ghostty_config_load_default_files(cfg); ghostty_config_load_cli_args(cfg); ghostty_config_load_recursive_files(cfg); + #endif // TODO: we'd probably do some config loading here... for now we'd // have to do this synchronously. When we support config updating we can do