Skip to content

Add Spice CD functionality to usb-device-widget

This patch-set adds shared Spice CD functionality to usb-device-widget.

Every time the widget is created or redrawn, a placeholder toggle named "Spice CD (empty)" appears on top of the available USB devices list. It allows adding CD devices and, when clicked, fires up a file chooser.

If an image path has been selected, a new Spice USB CD device is created. After the new device is added and this event is signalled to the widget, the original toggle shows the image file path and starts representing the CD. A new placeholder toggle for an empty Spice CD is added.

When the media is unloaded, the shared CD device is removed. Otherwise, all standard scenarios for Spice USB device removal are supported.

Necessary functionality and api for shared CD maintenance have been added to usb-device-manager.

Merge request reports

Loading