From daf0d356b8745b25a3ea11fe9bed5990ccb49216 Mon Sep 17 00:00:00 2001 From: Roman Mohr Date: Fri, 15 Feb 2019 12:18:33 +0100 Subject: [PATCH] Reintroduce remove-viewer vnc support on windows In order to run `virtctl vnc` on windows, `remote-viewer` needs to be on the search path in windows. --- pkg/virtctl/vnc/vnc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/virtctl/vnc/vnc.go b/pkg/virtctl/vnc/vnc.go index aee55ddabc60..e31ae0669d55 100644 --- a/pkg/virtctl/vnc/vnc.go +++ b/pkg/virtctl/vnc/vnc.go @@ -201,7 +201,7 @@ func (o *VNC) Run(cmd *cobra.Command, args []string) error { viewResChan <- err return } - case "linux": + case "linux", "windows": _, err := exec.LookPath(REMOTE_VIEWER) if exec.ErrNotFound == err { viewResChan <- fmt.Errorf("could not find the remote-viewer binary in $PATH")