-{app, BrowserWindow, ipcMain, nativeImage, Tray} = require 'electron'
+{app, BrowserWindow, ipcMain, Tray} = require 'electron'
 path = require 'path-extra'
 fs = require 'fs-extra'
 


  # Tray icon
  if process.platform == 'win32'
    global.appIcon = appIcon = new Tray(path.join(ROOT, 'assets', 'icons', 'poi.ico'))
    appIcon.on 'click', ->
      win = mainWindow
      if win.isMinimized() then win.restore() else win.show()

update = require './lib/update'
shortcut = require './lib/shortcut'
{log, warn, error} = require './lib/utils'

poiIconPath = path.join ROOT, 'assets', 'icons', 'poi.ico'

# Add shortcut to start menu when os is windows
app.setAppUserModelId 'org.poi.poi'
