mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 16:08:24 +03:00
Use app.getHomeDir() API to get home dir.
This commit is contained in:
parent
01a7b5fbc6
commit
e0f806f0fb
@ -9,7 +9,7 @@ optimist = require 'optimist'
|
||||
nslog = require 'nslog'
|
||||
_ = require 'underscore'
|
||||
|
||||
global.homeDir = process.env[if process.platform is 'win32' then 'USERPROFILE' else 'HOME']
|
||||
global.homeDir = app.getHomeDir()
|
||||
|
||||
console.log = (args...) ->
|
||||
nslog(args.map((arg) -> JSON.stringify(arg)).join(" "))
|
||||
|
Loading…
Reference in New Issue
Block a user