mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
fix for ~/.waveterm getting ignored
This commit is contained in:
parent
df25c54a31
commit
e831f84711
@ -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}`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user