Proxy macOS VNC connections from the LaunchDaemon to a per-user agent via launchctl asuser

This commit is contained in:
Viktor Liu
2026-05-20 12:12:20 +02:00
parent 62b36112ea
commit 7d61975f6c
9 changed files with 536 additions and 74 deletions
+18
View File
@@ -0,0 +1,18 @@
//go:build darwin && !ios
package cmd
import (
"fmt"
vncserver "github.com/netbirdio/netbird/client/vnc/server"
)
func newAgentResources() (vncserver.ScreenCapturer, vncserver.InputInjector, error) {
capturer := vncserver.NewMacPoller()
injector, err := vncserver.NewMacInputInjector()
if err != nil {
return nil, nil, fmt.Errorf("macOS input injector: %w", err)
}
return capturer, injector, nil
}