From c1b2e6658b195ba4176b5eff312605d24ffa59ce Mon Sep 17 00:00:00 2001 From: Araxeus <78568641+Araxeus@users.noreply.github.com> Date: Fri, 14 May 2021 08:41:18 +0300 Subject: [PATCH] fix: `options.customPath` doesn't work for windows toaster (#373) --- notifiers/toaster.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/notifiers/toaster.js b/notifiers/toaster.js index dd313fe..1c2d4d4 100644 --- a/notifiers/toaster.js +++ b/notifiers/toaster.js @@ -133,6 +133,9 @@ function notifyRaw(options, callback) { resultBuffer = out; options.pipeName = server.namedPipe; + const localNotifier = options.customPath || + (notifier + '-x' + (is64Bit ? '64' : '86') + '.exe'); + options = utils.mapToWin8(options); var argsList = utils.constructArgumentList(options, { explicitTrue: true, @@ -141,9 +144,8 @@ function notifyRaw(options, callback) { noEscape: true }); - var notifierWithArch = notifier + '-x' + (is64Bit ? '64' : '86') + '.exe'; utils.fileCommand( - this.options.customPath || notifierWithArch, + localNotifier, argsList, actionJackedCallback );