Skip to content
Merged
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
6 changes: 1 addition & 5 deletions src/main/clojure/dev/eca/eca_intellij/editor_actions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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!`)."
Expand All @@ -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))))
Expand Down