[Spice-devel] [PATCH spice-gtk 7/7] usbredir: Add awareness of host/guest side filtering

Hans de Goede hdegoede at redhat.com
Mon Feb 20 06:29:55 PST 2012


Hi,

On 02/20/2012 02:59 PM, Marc-André Lureau wrote:
> On Sun, Feb 19, 2012 at 12:50 AM, Hans de Goede<hdegoede at redhat.com>  wrote:
>> +int spice_usb_device_manager_device_ok_with_guest(SpiceUsbDeviceManager *self,
>
> It would make sense to have a more generic function that returns a
> detailled error. Something like:
>
> gboolean spice_usb_device_manager_can_redirect_device
> (SpiceUsbDeviceManager *self, SpiceUsbDevice *device, GError *error);

The purpose of spice_usb_device_manager_device_ok_with_guest is for a UI
(like the device selection widget) to show these devices in a different
way (ie set their widgets as not sensitive), how do you propose to
convey the reason why the are not active to the user? Esp. when the reason
may be different per device?

Currently the plan is to show a small colored bar at the top of the
widget with the text:
"Some devices cannot be redirected because of host policy"

To see how the bar would look like, go to nautilus, then File ->
Connect to server, enter a non existing hostname and hit connect.

Regards,

Hans


More information about the Spice-devel mailing list