diff --git a/packages/obsidian-testing-framework/src/index.ts b/packages/obsidian-testing-framework/src/index.ts index 2fc1028..3fe8a38 100644 --- a/packages/obsidian-testing-framework/src/index.ts +++ b/packages/obsidian-testing-framework/src/index.ts @@ -53,10 +53,10 @@ function generateVaultConfig(vault: string) { if (process.platform == "win32") { configLocation = path.join(`${process.env.LOCALAPPDATA}`, "Obsidian"); } else { - try { - mkdirSync(process.env.XDG_CONFIG_HOME as string) - } catch(e) {} configLocation = path.join(`${process.env.XDG_CONFIG_HOME}`, "obsidian"); + try { + mkdirSync(configLocation, {recursive: true}) + } catch(e) {} } const obsidianConfigFile = path.join(configLocation, "obsidian.json"); const json: {