Merge pull request #2133 from atom/app_dir_api
Implment app.getAppPath API.
This commit is contained in:
commit
e0528655a8
4 changed files with 13 additions and 0 deletions
|
@ -25,6 +25,13 @@ if process.platform is 'darwin'
|
|||
show: bindings.dockShow
|
||||
setMenu: bindings.dockSetMenu
|
||||
|
||||
appPath = null
|
||||
app.setAppPath = (path) ->
|
||||
appPath = path
|
||||
|
||||
app.getAppPath = ->
|
||||
appPath
|
||||
|
||||
# Be compatible with old API.
|
||||
app.once 'ready', -> @emit 'finish-launching'
|
||||
app.terminate = app.quit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue