Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
makamekm committed Apr 24, 2020
1 parent 34847c6 commit 227601f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/electron/drive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/electron/git/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
Expand Down

0 comments on commit 227601f

Please sign in to comment.