feat: authenticate Windows command launcher and signal helper
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user