diff --git a/tray.js b/tray.js index c5697b5..4aca98c 100644 --- a/tray.js +++ b/tray.js @@ -1,3 +1,4 @@ +var path = require('path'); var electron = require('electron'); var app = electron.app; @@ -48,7 +49,7 @@ function checkLinuxTraySupport (cb) { } function createTray() { - tray = new electron.Tray('./images/daplie-logo.png'); + tray = new electron.Tray(path.join(__dirname, 'images', 'daplie-logo.png')); tray.on('click', function () { win.show(); }); updateTrayMenu(); }