Browse Source

绿色版向日葵进程名称

Michael Wang 3 years ago
parent
commit
9bb8376816
2 changed files with 7 additions and 3 deletions
  1. 1 0
      src/features/Login/Login.vue
  2. 6 3
      src/utils/nativeExe.js

+ 1 - 0
src/features/Login/Login.vue

@@ -993,6 +993,7 @@ export default {
             .replace("sessioncontroller", "Symantec PCAnywhere")
             .replace(/sunloginclient/gi, "向日葵")
             .replace(/sunloginremote/gi, "向日葵")
+            .replace(/选择免安装运行,截图识别/gi, "向日葵")
             .replace("wemeetapp", "腾讯会议")
             .replace("wechat", "微信");
 

+ 6 - 3
src/utils/nativeExe.js

@@ -85,12 +85,15 @@ export function nodeCheckRemoteDesktop() {
 
   const appList = window
     .nodeRequire("child_process")
-    .execSync("tasklist")
+    .execSync("cmd /c chcp 65001>nul && tasklist /FO CSV")
     .toString();
+  // console.debug(appList);
   if (
     appList &&
-    appList.match(/sunloginclient/gi) &&
-    appList.match(/sunloginclient/gi).length > 0
+    ((appList.match(/sunloginclient/gi) &&
+      appList.match(/sunloginclient/gi).length > 0) ||
+      (appList.match(/选择免安装运行,截图识别/gi) &&
+        appList.match(/选择免安装运行,截图识别/gi).length > 0))
   ) {
     return true;
   } else {