Skip to content

Commit 6eb2900

Browse files
authored
Use correct dir for reading existing config on Linux (#195)
I put down the wrong environment variable.
1 parent b25b622 commit 6eb2900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/coder/gateway/views/steps/CoderWorkspacesStepView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ class CoderWorkspacesStepView(val enableNextButtonCallback: (Boolean) -> Unit) :
381381
OS.WINDOWS -> Paths.get(System.getenv("APPDATA"), "coderv2")
382382
OS.MAC -> Paths.get(System.getenv("HOME"), "Library/Application Support/coderv2")
383383
else -> {
384-
dir = System.getenv("XDG_CACHE_HOME")
384+
dir = System.getenv("XDG_CONFIG_HOME")
385385
if (!dir.isNullOrBlank()) {
386386
return Paths.get(dir, "coderv2")
387387
}

0 commit comments

Comments
 (0)