Skip to content

Commit

Permalink
Reintroduce remove-viewer vnc support on windows
Browse files Browse the repository at this point in the history
In order to run `virtctl vnc` on windows, `remote-viewer` needs to be on
the search path in windows.
  • Loading branch information
rmohr committed Feb 15, 2019
1 parent 363cf5c commit daf0d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/virtctl/vnc/vnc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit daf0d35

Please sign in to comment.