Skip to content

Commit 6eb1bae

Browse files
committed
refactor: first run folder
Signed-off-by: Adam Setch <[email protected]>
1 parent 3ce9717 commit 6eb1bae

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/main/first-run.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import fs from 'node:fs';
22
import path from 'node:path';
33
import { app, dialog } from 'electron';
44

5+
import { APPLICATION } from '../shared/constants';
56
import { logError } from '../shared/logger';
67
import { isMacOS } from '../shared/platform';
78

@@ -32,7 +33,7 @@ async function promptMoveToApplicationsFolder() {
3233

3334
const getConfigPath = () => {
3435
const userDataPath = app.getPath('userData');
35-
return path.join(userDataPath, 'FirstRun', 'gitify-first-run');
36+
return path.join(userDataPath, 'FirstRun', APPLICATION.FIRST_RUN_FOLDER);
3637
};
3738

3839
// Whether or not the app is being run for the first time.

src/shared/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ export const APPLICATION = {
55

66
EVENT_PREFIX: 'gitify:',
77

8+
FIRST_RUN_FOLDER: 'gitify-first-run',
9+
810
WEBSITE: 'https://gitify.io',
911
};

0 commit comments

Comments
 (0)