 
 ## window.notify
 # msg=null: Sound-only notification.
-NOTIFY_DEFAULT_ICON = path.join(ROOT, 'assets', 'icons', 'icon.png')
+NOTIFY_DEFAULT_ICON = join(ROOT, 'assets', 'icons', 'icon.png')
 NOTIFY_NOTIFICATION_API = true
 if process.platform == 'win32' and semver.lt(os.release(), '6.2.0')
   NOTIFY_NOTIFICATION_API = false

require 'coffee-react/register'
path = require 'path-extra'
fs = require 'fs-extra'
os = require 'os'
semver = require 'semver'

window.language = config.get 'poi.language', language
window.zoomLevel = config.get 'poi.zoomLevel', 1
window.useSVGIcon = config.get 'poi.useSVGIcon', false
d = if process.platform == 'darwin' then join(path.homedir(), 'Pictures', 'Poi') else join(global.APPDATA_PATH, 'screenshots')
window.screenshotPath = config.get 'poi.screenshotPath', d
window.notify.morale = config.get 'poi.notify.morale.value', 49
window.notify.expedition = config.get 'poi.notify.expedition.value', 60

# i18n config
window.i18n = {}
i18nFiles = glob.sync(join(__dirname, '..', 'i18n', '*'))
for i18nFile in i18nFiles
  namespace = path.basename i18nFile
  window.i18n[namespace] = new (require 'i18n-2')
