From 5843b5d442ee5efaf956bce5a1bed412dbc618e0 Mon Sep 17 00:00:00 2001 From: Joe Uhren Date: Sun, 3 Jul 2022 20:00:07 -0600 Subject: [PATCH] Fix for installs with spaces in the absolute path -If the explorer is installed to a directory that has a space character somewhere in the absolute path, the locking mechanism will not work correctly on non-windows computers and will cause undesired behavior without this fix --- lib/explorer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/explorer.js b/lib/explorer.js index e9d30e6..cec131f 100644 --- a/lib/explorer.js +++ b/lib/explorer.js @@ -1405,7 +1405,7 @@ module.exports = { // run a cmd that will determine if the lock should still be active try { - var cmdResult = execSync('ps -p `cat ' + pidFile + '` > /dev/null'); + var cmdResult = execSync('ps -p `cat "' + pidFile + '"` > /dev/null'); } catch (err) { // if an error occurs, the process is NOT running and therefore the lock should be deactivated deactivateLock = true;