mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-01-25 06:03:42 +03:00
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:
parent
40ebfbadee
commit
7a54b96dbe
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user