[gnome-boxes] media-manager: Ignore CDROM devices
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] media-manager: Ignore CDROM devices
- Date: Mon, 17 Mar 2014 18:59:08 +0000 (UTC)
commit a65b4b6859839f005f84c8003963cd78f535d64c
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Mar 16 15:20:19 2014 +0000
media-manager: Ignore CDROM devices
Apparently Qemu is unable to handle CDROM devices so lets not present
them to user.
src/media-manager.vala | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/media-manager.vala b/src/media-manager.vala
index 52f7990..7f73618 100644
--- a/src/media-manager.vala
+++ b/src/media-manager.vala
@@ -94,8 +94,9 @@ private class Boxes.MediaManager : Object {
enumerator.add_match_property ("DEVTYPE", "disk");
foreach (var device in enumerator.execute ()) {
- if (device.get_property ("ID_FS_BOOT_SYSTEM_ID") == null &&
- !device.get_property_as_boolean ("OSINFO_BOOTABLE"))
+ if ((device.get_property ("ID_FS_BOOT_SYSTEM_ID") == null &&
+ !device.get_property_as_boolean ("OSINFO_BOOTABLE")) ||
+ device.get_property_as_boolean ("ID_CDROM")) // Qemu has issues with CD-ROM devices
continue;
var path = device.get_device_file ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]