From a519d762817947e2d725004ad55a8f3a0f20b945 Mon Sep 17 00:00:00 2001 From: Quentin DECAUNES Date: Mon, 11 Mar 2019 12:58:49 +0100 Subject: [PATCH] getRyzenAdjExecutablePath() cross platform. --- js/methods.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }