GNOME Bugzilla – Bug 711716
Arcane mime-type instead of human readable description
Last modified: 2018-01-11 10:07:02 UTC
Created attachment 259308 [details] screenshot As gnome-boxes is the one "benefiting" from this. The bar here says "Detected as x-content/bootable-media-type". x-content/bootable-media-type isn't a registered mime-type. So either file a bug against shared-mime-info with a git formatted patch (following its HACKING file, including a test tree), or install your own translated mime-type file which will give a real name to this mime-type.
(In reply to comment #0) > Created an attachment (id=259308) [details] > screenshot > > As gnome-boxes is the one "benefiting" from this. The bar here says "Detected > as x-content/bootable-media-type". > > x-content/bootable-media-type isn't a registered mime-type. So either file a > bug against shared-mime-info with a git formatted patch (following its HACKING > file, including a test tree), Well I was going to do that 2 years ago when I came-up with this mime-type but IIRC you said you only want it in shared-mime-info if detection can be done using first few Ks of the files and that is not possible. > or install your own translated mime-type file > which will give a real name to this mime-type. Unless I misunderstood you then, I guess we'll have to do this but the file will need to come from libosinfo.
(In reply to comment #1) > (In reply to comment #0) > > Created an attachment (id=259308) [details] [details] > > screenshot > > > > As gnome-boxes is the one "benefiting" from this. The bar here says "Detected > > as x-content/bootable-media-type". > > > > x-content/bootable-media-type isn't a registered mime-type. So either file a > > bug against shared-mime-info with a git formatted patch (following its HACKING > > file, including a test tree), > > Well I was going to do that 2 years ago when I came-up with this mime-type but > IIRC you said you only want it in shared-mime-info if detection can be done > using first few Ks of the files and that is not possible. It's obviously guessing the mime-type already, somehow. The problem is that you don't have a description for the mime-type. That has nothing to do with that (undefined) mime-type having magic or not. > > or install your own translated mime-type file > > which will give a real name to this mime-type. > > Unless I misunderstood you then, I guess we'll have to do this but the file > will need to come from libosinfo. It still needs a mime-type definition to have a nice and translated name in the UI. It shouldn't have magic that requires huge amounts of data.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-boxes/issues/20.