From e831f84711dbe58134556f6ffb00eff01f379dfb Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Tue, 22 Oct 2024 21:23:24 -0700 Subject: [PATCH] fix for ~/.waveterm getting ignored --- emain/platform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emain/platform.ts b/emain/platform.ts index 712c82ad2..d7360cad5 100644 --- a/emain/platform.ts +++ b/emain/platform.ts @@ -46,7 +46,7 @@ const WaveHomeVarName = "WAVETERM_HOME"; function getWaveHomeDir(): string { let home = process.env[WaveHomeVarName]; if (!home) { - const homeDir = process.env.HOME; + const homeDir = app.getPath("home"); if (homeDir) { home = path.join(homeDir, `.${waveDirName}`); }