|
@@ -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 {
|