[gnome-boxes/wip/look-for-bootable-iso] wip: Show only bootable ISOs in dialog



commit c30d8436b3890ed677ceda07d256a51a1b6e30a5
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Nov 8 16:24:10 2012 +0100

    wip: Show only bootable ISOs in dialog
    
    This doesn't really work because shared-mime-info doesn't know about our
    'x-content/bootable-media' mime-type.
    
    I talked to Bastien about making xdg-mime aware of this mime-type but I
    was told that xdg-mime is supposed to be able to guess mime-type by only
    sniffing the first few kilobytes, where as we need to skip at least 34K
    to detect if El torito header is present on ISO (which is what implies a
    bootable ISO).

 src/wizard-source.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/wizard-source.vala b/src/wizard-source.vala
index 591223e..c8d480b 100644
--- a/src/wizard-source.vala
+++ b/src/wizard-source.vala
@@ -308,7 +308,7 @@ private class Boxes.WizardSource: GLib.Object {
         dialog.show_hidden = false;
         dialog.local_only = true;
         dialog.filter = new Gtk.FileFilter ();
-        dialog.filter.add_mime_type ("application/x-cd-image");
+        dialog.filter.add_mime_type ("x-content/bootable-media");
         var ret = false;
         if (dialog.run () == Gtk.ResponseType.ACCEPT) {
             uri = dialog.get_uri ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]