On 06/25/2013 09:58 AM, Guannan Ren wrote: > On 06/25/2013 01:52 AM, Hans de Goede wrote: >> Hi, >> >> On 06/24/2013 12:11 PM, Guannan Ren wrote: >>> >>> This two patch use spicy-client python binding to add USB redirection >>> support in virt-manager if guests use spice viewer. >> >> Very cool, thanks for working on this. I've done a quick review, mostly >> from the usbredir pov rather then a code pov, and there is one thing >> missing. >> >> Now that virt-manager will have a usb-device selection dialog, it >> should probably also enable usb autoredirection by setting the >> auto-connect property of the UsbDeviceManager to true, this will enable >> the "If the virt-viewer window has the current focus and I insert a USB >> device, it will be automatically redirected to the guest" behavior >> Leonardo is talking about. >> >> I see that Cole is not necessarily a fan of it. Cole, you should give >> this a try, most users love it. In virt-viewer we just always enable >> it without any complaints. Alternatively it could be made an option >> but I would default it to true. >> > > I tried it several times, for virt-viewer, auto-usbredir property is set to > TRUE by default, so > it supports auto-rediret by default. it works well for a single guest. > When there are multiple virt-viewer instance opened for multiple guests, the > auto usbredirection > becomes a little confusing, sometimes it is redirected to guest A, sometimes > it goes to guest B > between I re-plugin the usb devices. > > It is a really good feature. for virt-manager, multiple viewers more often > stay opened for guests > than virt-viewer, so it possibly cause some confusion for user. So I think > using *disable* to this > feature by default probably is better. we can give an option to enable it > somehow. > Hmm, maybe we could conditionally enable the property only when the spice widget has focus. So it's only turned on for one console at a time. - Cole _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list