Skip to content

Commit 5b5598a

Browse files
committed
[#4] Make config more specific
1 parent 5b52025 commit 5b5598a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

config.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ export default class Config {
2727
constructor() {
2828

2929
// Set the config file path to the appData directory
30-
this.configPath = path.join(process.env.APPDATA ?? process.env.HOME, "config.yml");
30+
const basePath = process.env.APPDATA ||
31+
(process.platform === 'darwin' ? process.env.HOME + '/Library/Preferences':
32+
process.env.HOME +'/.local/share');
33+
this.configPath = path.join(basePath, ".fvttrc.yml");
34+
console.log(this.configPath);
3135

3236
// Ensure the config file exists
3337
if (!fs.existsSync(this.configPath)) {

0 commit comments

Comments
 (0)