Skip to content

Commit

Permalink
fix: options.customPath doesn't work for windows toaster (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
Araxeus authored May 14, 2021
1 parent b977dd5 commit c1b2e66
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions notifiers/toaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
);
Expand Down

0 comments on commit c1b2e66

Please sign in to comment.