From b7333574aa0ad526e99b192db63b635fca8d9c1d Mon Sep 17 00:00:00 2001 From: antelle Date: Sat, 24 Apr 2021 10:38:43 +0200 Subject: [PATCH] replaced .exe in app name on windows --- desktop/scripts/util/process-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/scripts/util/process-utils.js b/desktop/scripts/util/process-utils.js index d0a54abb..b259ed17 100644 --- a/desktop/scripts/util/process-utils.js +++ b/desktop/scripts/util/process-utils.js @@ -75,7 +75,7 @@ function parseWmicOutput(output) { result[mapped] = value | 0; } else if (mapped === 'execPath') { result[mapped] = value.replace(/^"([^"]+)"/g, '$1'); - result.appName = value.split('\\').pop(); + result.appName = value.split('\\').pop().replace(/\.exe/i, ''); } } }