Add app.getHomeDir() API.

This commit is contained in:
Cheng Zhao 2013-06-19 13:49:58 +08:00
parent 81aea6a4b9
commit 7138d3a58d

View file

@ -6,6 +6,9 @@ Application::__proto__ = EventEmitter.prototype
app = new Application
app.getHomeDir = ->
process.env[if process.platform is 'win32' then 'USERPROFILE' else 'HOME']
app.commandLine =
appendSwitch: bindings.appendSwitch,
appendArgument: bindings.appendArgument