diff options
author | Florrie <towerofnix@gmail.com> | 2020-02-04 22:57:28 -0400 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2020-02-04 22:57:28 -0400 |
commit | 8cbae1fe17bbf51060734861540a398631635ad7 (patch) | |
tree | ece8c93d64b981c7e7b9ae67d59cd88b79d274e4 /backend.js | |
parent | 54c0ae40e4cb05f055bd3f7e195bc9308aee2e73 (diff) |
more os.homedir()
Diffstat (limited to 'backend.js')
-rw-r--r-- | backend.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend.js b/backend.js index 7ee6873..379a16b 100644 --- a/backend.js +++ b/backend.js @@ -7,6 +7,7 @@ const { getDownloaderFor } = require('./downloaders') const { getMetadataReaderFor } = require('./metadata-readers') const { getPlayer } = require('./players') const RecordStore = require('./record-store') +const os = require('os') const { getTimeStringsFromSec, @@ -568,7 +569,7 @@ class Backend extends EventEmitter { this.throttleMetadata = throttlePromise(10) this.metadataDictionary = {} - this.rootDirectory = process.env.HOME + '/.mtui' + this.rootDirectory = os.homedir() + '/.mtui' this.metadataPath = this.rootDirectory + '/track-metadata.json' } |