Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #14 from zaggino/mackenza/extensions-linux
Browse files Browse the repository at this point in the history
set the temp folder so extensions install/update properly
  • Loading branch information
zaggino committed May 5, 2015
2 parents e88ff47 + 0364224 commit fed5312
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/shell-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ var app = require("app");
var fs = require("fs-extra");
var path = require("path");
var utils = require("./utils");
var os = require("os");

var CONFIG_PATH = path.resolve(utils.convertWindowsPathToUnixPath(app.getPath("userData")), "shell-config.json");
var config;

if (!process.env["TMPDIR"] && !process.env["TMP"] && !process.env["TEMP"]) {
process.env["TMPDIR"] = process.env["TMP"] = process.env["TEMP"] = os.tmpdir();
}

try {
config = fs.readJsonSync(CONFIG_PATH);
} catch (err) {
Expand Down

0 comments on commit fed5312

Please sign in to comment.