From 54e3861ba8f9dea8b86edbbb9728969db7c08392 Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Mon, 14 May 2018 22:33:38 -0400 Subject: [PATCH] Fixing linux data directory. --- app/assets/js/configmanager.js | 2 +- package-lock.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/js/configmanager.js b/app/assets/js/configmanager.js index 59c848c..437fff1 100644 --- a/app/assets/js/configmanager.js +++ b/app/assets/js/configmanager.js @@ -4,7 +4,7 @@ const os = require('os') const path = require('path') const uuidV4 = require('uuid/v4') -const sysRoot = process.env.APPDATA || (process.platform == 'darwin' ? process.env.HOME + '/Library/Application Support' : '/var/local') +const sysRoot = process.env.APPDATA || (process.platform == 'darwin' ? process.env.HOME + '/Library/Application Support' : process.env.HOME) const dataPath = path.join(sysRoot, '.westeroscraft') const firstLaunch = !fs.existsSync(dataPath) diff --git a/package-lock.json b/package-lock.json index f7e0957..bcd0878 100644 --- a/package-lock.json +++ b/package-lock.json @@ -743,12 +743,12 @@ "resolved": "https://registry.npmjs.org/discord-rpc/-/discord-rpc-3.0.0-beta.10.tgz", "integrity": "sha512-b0G6O0WJkxoLQSopyNRqByXCrpBL68HXPMULVZXLjRgj+sStwOmbABM+HwBDJWF6s/uhkB/+cAgq+19x4w0SPA==", "requires": { - "discord.js": "github:discordjs/discord.js#a5e8f05d01e34b69b80736688704ee594b4d0900", + "discord.js": "github:discordjs/discord.js#a732402c95438f5ddda20958e5c1b2360500069a", "snekfetch": "^3.5.8" }, "dependencies": { "discord.js": { - "version": "github:discordjs/discord.js#a5e8f05d01e34b69b80736688704ee594b4d0900", + "version": "github:discordjs/discord.js#a732402c95438f5ddda20958e5c1b2360500069a", "from": "github:discordjs/discord.js", "requires": { "pako": "^1.0.0",