feat: authenticate Windows command launcher and signal helper

This commit is contained in:
2026-09-06 14:38:16 +00:00
parent 158fd8f3aa
commit 0383155b86
13 changed files with 1270 additions and 189 deletions
+9
View File
@@ -11,6 +11,7 @@ import (
"path/filepath"
"strings"
clientwindows "github.com/rvbox/rvbox/internal/client/supervisor/windows"
"github.com/rvbox/rvbox/internal/client/windowsservice"
"github.com/rvbox/rvbox/internal/client/windowstray"
"golang.org/x/sys/windows/svc"
@@ -56,6 +57,14 @@ func runTray(configPath string, diagnostics io.Writer) error {
return windowstray.Run(context.Background(), diagnostics)
}
func runLauncher(channel string, _ io.Writer) error {
return clientwindows.RunLauncher(context.Background(), channel)
}
func runSignalHelper(channel string, _ io.Writer) error {
return clientwindows.RunSignalHelper(context.Background(), channel)
}
func handleTrayRequest(ctx context.Context, configPath string, request windowstray.Frame) (windowstray.Frame, error) {
response := windowstray.Frame{Action: windowstray.ActionStatus}
switch request.Action {