From 54c0ae40e4cb05f055bd3f7e195bc9308aee2e73 Mon Sep 17 00:00:00 2001 From: Florrie Date: Tue, 4 Feb 2020 22:51:44 -0400 Subject: OS-agnostic default music directory --- client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.js b/client.js index 50e4a7a..0f7dde3 100644 --- a/client.js +++ b/client.js @@ -4,6 +4,7 @@ const AppElement = require('./ui') const processSmartPlaylist = require('./smart-playlist') +const os = require('os') const { ui: { @@ -68,7 +69,7 @@ const setupClient = async ({backend, writable, interfacer, appConfig}) => { comment: ( '(Add songs and folders to ~/Music to make them show up here,' + ' or pass mtui your own playlist.json file!)'), - source: ['crawl-local', process.env.HOME + '/Music'] + source: ['crawl-local', os.homedir() + '/Music'] } grouplike = await processSmartPlaylist(grouplike) appElement.tabber.currentElement.loadGrouplike(grouplike) -- cgit 1.3.0-6-gf8a5