From c6a84524a8309acb4bb993a6c363261ab01c234b Mon Sep 17 00:00:00 2001 From: root Date: Sun, 29 Dec 2019 00:21:03 +0100 Subject: [PATCH] prepend "XDG_RUNTIME_DIR" to command method in order to fix CRON calls --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index 1870cf8..1c66035 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -54,7 +54,7 @@ module.exports.command = function(notifier, options, cb) { console.info('[notifier options]', options.join(' ')); } - return cp.exec(notifier + ' ' + options.join(' '), function( + return cp.exec('XDG_RUNTIME_DIR=/run/user/$(id -u) ' + notifier + ' ' + options.join(' '), function( error, stdout, stderr