Fixing linux data directory.

This commit is contained in:
Daniel Scalzi 2018-05-14 22:33:38 -04:00
parent 49bad485f6
commit 54e3861ba8
No known key found for this signature in database
GPG Key ID: 4B388B523BBBF147
2 changed files with 3 additions and 3 deletions

View File

@ -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)

4
package-lock.json generated
View File

@ -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",