Skip to content

Commit

Permalink
Fix automatic macOS data directory calculation
Browse files Browse the repository at this point in the history
Node doesn't expand '~', so use env.HOME to build the default data path location
  • Loading branch information
danrahn committed Mar 23, 2024
1 parent 71a887d commit 42a74a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Server/MarkerEditorConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,11 @@ class MarkerEditorConfig extends ConfigBase {
return join(process.env.LOCALAPPDATA, 'Plex Media Server');
}
case 'darwin':
return '~/Library/Application Support/Plex Media Server';
if (process.env.HOME) {
return join(process.env.HOME, 'Library/Application Support/Plex Media Server');
}

// __fallthrough
case 'linux':
case 'aix':
case 'openbsd':
Expand Down

0 comments on commit 42a74a8

Please sign in to comment.