Add app.getHomeDir() API.
This commit is contained in:
parent
81aea6a4b9
commit
7138d3a58d
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue