fix for ~/.waveterm getting ignored

This commit is contained in:
Evan Simkowitz 2024-10-22 21:23:24 -07:00
parent df25c54a31
commit e831f84711
No known key found for this signature in database

View File

@ -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}`);
}