SpiceClientGLib.UsbDeviceManager:auto-connect-filter
Description: Reference for property SpiceClientGLib.UsbDeviceManager:auto-connect-filter

### Property

# SpiceClientGLib UsbDeviceManager:auto-connect-filter

#### Declaration

    property auto-connect-filter: utf8 [ read, write, construct ]

#### Description [src]

Set a string specifying a filter to use to determine which USB devices to autoconnect when plugged in, a filter consists of one or more rules. Where each rule has the form of:

`class`,`vendor`,`product`,`version`,`allow`

Use -1 for `class`/`vendor`/`product`/`version` to accept any value.

And the rules themselves are concatenated like this:

`rule1`|`rule2`|`rule3`

The default setting filters out HID (class 0x03) USB devices from auto connect and auto connects anything else. Note the explicit allow rule at the end, this is necessary since by default all devices without a matching filter rule will not auto-connect.

Filter strings in this format can be easily created with the RHEV-M USB filter editor tool.

Type:`gchar*`

Default value | 0x03,-1,-1,-1,0|-1,-1,-1,-1,1

#### Flags

Readable | yes
Writable | yes
Construct | yes
Construct only | no