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

Bug#661841: libkmime4 mistakenly considers .vdi files (virtualbox virtual disk) for text files



reassign 661841 libkdecore5 kde4libs/4:4.6.5-2
thanks

Alle giovedì 1 marzo 2012, Maze ha scritto:
> Package: libkmime4

(libkmime4 is for PIM-related stuff like emails, it isn't the library 
actually doing the general MIME type handling.)

> I have a bunch of .vdi files as my virtual disks for virtualbox.
> Normally these should be attributed the mimetype x-virtualbox-vdi,
> however they are interpreted by kde as being plain text.

Which parts of KDE in particular? dolphin? The file dialog? etc...

> This seems to be a case where libkmime4 fails to fall back to
> detecting mime type based on extension when failing to analyze the
> contents of a file. Hence, this could be a more general issue.
> However I have not detected any other improper mime type detection
> on my system.

Given "foo.vdi" a file you have which is misdetected, please execute:
$ kmimetypefinder foo.vdi
$ kmimetypefinder -f foo.vdi
$ kmimetypefinder -c foo.vdi
Also, if it is not private/containing private data, can you also please 
attach it?

> I worked around this by adding the following to
> /usr/share/mime/packages/virtualbox.xml
> 
> <       <magic priority="100">
> <          <match type="string" offset="0:200" value="VirtualBox Disk
> Image"/>
> <       </magic>

This looks like something it should be done in virtualbox.xml itself, as 
otherwise it won't detect any vdi files when using only the file content 
(and not the file name).

-- 
Pino Toscano

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: