From 8cbae1fe17bbf51060734861540a398631635ad7 Mon Sep 17 00:00:00 2001 From: Florrie Date: Tue, 4 Feb 2020 22:57:28 -0400 Subject: more os.homedir() --- backend.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backend.js') 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' } -- cgit 1.3.0-6-gf8a5