From 6bd09c3eff53fa8e93a8269b1d4faeeca6f3ad8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arthur=20F=C3=BCcher?= Date: Wed, 29 Apr 2026 09:23:26 -0300 Subject: [PATCH] Fix macOS global config path to match ECA server MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the macOS-specific branch in get-global-config-path that resolved to ~/Library/Application Support/eca/config.json. The ECA server uses ~/.config/eca/config.json on all platforms (including macOS), so the Settings → Global Config tab was pointing to the wrong file. 🤖 Generated with [eca](https://eca.dev) Co-Authored-By: eca-agent --- src/main/clojure/dev/eca/eca_intellij/editor_actions.clj | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/clojure/dev/eca/eca_intellij/editor_actions.clj b/src/main/clojure/dev/eca/eca_intellij/editor_actions.clj index ef58a10..d92d63f 100644 --- a/src/main/clojure/dev/eca/eca_intellij/editor_actions.clj +++ b/src/main/clojure/dev/eca/eca_intellij/editor_actions.clj @@ -28,12 +28,11 @@ 1. `ECA_CONFIG_PATH` env var (absolute path) — honored as-is. 2. `$XDG_CONFIG_HOME/eca/config.json` when the var is set. 3. Platform default: - - macOS : `~/Library/Application Support/eca/config.json` - Windows: `%APPDATA%\\eca\\config.json` (falls back to `~/.config/eca/config.json` when APPDATA is absent — which realistically never happens, but the fallback matches the other clients verbatim). - - Other : `~/.config/eca/config.json` + - Others (macOS, Linux): `~/.config/eca/config.json` Does not touch the filesystem. Creation is the caller's responsibility (see `ensure-global-config-exists!`)." @@ -49,9 +48,6 @@ (and xdg (pos? (count (clojure.string/trim xdg)))) (io/file xdg "eca" "config.json") - (clojure.string/includes? os-name "mac") - (io/file home "Library" "Application Support" "eca" "config.json") - (clojure.string/includes? os-name "win") (let [appdata (System/getenv "APPDATA")] (if (and appdata (pos? (count (clojure.string/trim appdata))))