diff --git a/src/electron/drive.ts b/src/electron/drive.ts index bc9ab06..a91617f 100644 --- a/src/electron/drive.ts +++ b/src/electron/drive.ts @@ -21,7 +21,7 @@ const getBaseFolder = () => { return path.resolve( DRIVE_BASE_FOLDER ? path.resolve(DRIVE_BASE_FOLDER) - : path.resolve(app.getPath("temp"), "drive"), + : path.resolve(app.getPath("appData"), "drive"), settings.get("publicKey") ); }; diff --git a/src/electron/git/index.ts b/src/electron/git/index.ts index be06cd3..8fe2cdd 100755 --- a/src/electron/git/index.ts +++ b/src/electron/git/index.ts @@ -33,7 +33,7 @@ export async function readData(config) { const getDefaultConfig = (): Config => { const homeConfigPath = DEV_CONFIG ? path.resolve(DEV_CONFIG) - : path.resolve(app.getPath("home"), "git-log-config.yml"); + : path.resolve(app.getPath("exe"), "git-log-config.yml"); if (fs.existsSync(homeConfigPath)) { return YAML.parse(fs.readFileSync(homeConfigPath, "utf-8")); }