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
This commit is contained in:
Joe Uhren
2022-07-03 20:00:07 -06:00
parent bae4d50087
commit 5843b5d442
+1 -1
View File
@@ -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;