spice: vv-file: do not ignore usb-filter

Fixes rhbz#1309634

Signed-off-by: Uri Lublin <uril@redhat.com>
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
Uri Lublin 2016-02-18 13:44:24 +02:00 committed by Fabiano Fidêncio
parent 40ebfbadee
commit 7a54b96dbe

View File

@ -586,6 +586,16 @@ fill_session(VirtViewerFile *file, SpiceSession *session)
g_object_set(G_OBJECT(gtk), "auto-usbredir", enabled, NULL);
}
if (virt_viewer_file_is_set(file, "usb-filter")) {
gchar *filterstr = virt_viewer_file_get_usb_filter(file);
SpiceUsbDeviceManager *manager = spice_usb_device_manager_get(session,
NULL);
if (manager != NULL) {
g_object_set(manager, "auto-connect-filter", filterstr, NULL);
}
g_free(filterstr);
}
if (virt_viewer_file_is_set(file, "secure-channels")) {
gchar **channels = virt_viewer_file_get_secure_channels(file, NULL);
g_object_set(G_OBJECT(session), "secure-channels", channels, NULL);