diff --git a/js/methods.js b/js/methods.js index 43b3bb6..455ad78 100644 --- a/js/methods.js +++ b/js/methods.js @@ -108,10 +108,10 @@ function notification(type, message) { function getRyzenAdjExecutablePath() { const settings = require('electron-settings'); var ryzen_adj_path = settings.get('settings.ryzen_adj_path'); - if (!ryzen_adj_path) { + if (!ryzen_adj_path && require('os').platform === 'win32') { ryzen_adj_path = getCurrentWorkingDirectory() + "\\bin\\ryzenadj.exe"; } - appendLog(`getRyzenAdjExecutablePath(): ${ryzen_adj_path}`); + appendLog(`getRyzenAdjExecutablePath(): "${ryzen_adj_path}"`); return ryzen_adj_path; }