diff --git a/src/index.js b/src/index.js index 6e649ab..6a75bd8 100644 --- a/src/index.js +++ b/src/index.js @@ -119,7 +119,12 @@ const createWindow = () => { if (result.response === 1) { require('electron').shell.openExternal("https://github.com/1nikolas/tidal-lyrics/"); } else if (result.response === 2) { - require('electron').shell.openExternal(logPath) + if (process.platform == "win32") { + require('electron').shell.openExternal(logPath) + } else if (process.platform == "darwin") { + exec("open -t " + logPath) + } + } })