Add "cache" and "userCache" directories

This commit is contained in:
Cheng Zhao 2015-01-18 21:09:42 -08:00
parent 9a04f67c0a
commit ce52a87477
5 changed files with 14 additions and 2 deletions

View file

@ -90,8 +90,9 @@ process.once 'BIND_DONE', ->
else
app.setDesktopName '#{app.getName()}.desktop'
# Set the user data path according to application's name.
# Set the user path according to application's name.
app.setPath 'userData', path.join(app.getPath('appData'), app.getName())
app.setPath 'userCache', path.join(app.getPath('cache'), app.getName())
# Load the chrome extension support.
require './chrome-extension.js'