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 = new Application
|
||||||
|
|
||||||
|
app.getHomeDir = ->
|
||||||
|
process.env[if process.platform is 'win32' then 'USERPROFILE' else 'HOME']
|
||||||
|
|
||||||
app.commandLine =
|
app.commandLine =
|
||||||
appendSwitch: bindings.appendSwitch,
|
appendSwitch: bindings.appendSwitch,
|
||||||
appendArgument: bindings.appendArgument
|
appendArgument: bindings.appendArgument
|
||||||
|
|
Loading…
Add table
Reference in a new issue