caja incorrect mime type detection
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux Mint |
New
|
Undecided
|
Unassigned |
Bug Description
1) Linux Mint 14 Nadja MATE 64 bit
2) In some circumstances caja detects/presents the wrong mime type for a file. Most notable is the /boot/vmlinuz-
Open /boot in caja (icon mode). The vmlinuz-... file will be displayed with a MS Windows icon.
Important: In order to reproduce the bug, one needs "read" permission for the file, else it will display as a "regular file" (see below). In that case open /boot with caja in administrator mode.
Here a little test using the "file" command:
$ file -i vmlinuz-3.5.0-*
vmlinuz-
vmlinuz-
$ file -i -k vmlinuz-3.5.0-*
vmlinuz-
vmlinuz-
file runs up to 3 tests to determine the mime type. Without the -k option file will exit once a test was successful in detecting the mime type. With the -k option file will continue testing, completing all 3 tests and printing the result of the last test that succeeded (with the -i option).
Caja behaves as if it was using file -k -i ... instead of file -i ...
3) Caja displays and reports (Properties dialog) incorrect mime type for vmlinuz kernel image and associates the wrong icon and program to launch.
4) Caja should use the first detected mime type as with file -i <file name> (that is without the "-k" option).
Here is the detailed output of "file vmlinuz-
$ file vmlinuz-
vmlinuz-
For comparison, here the detailed output of "file -k vmlinuz-
$ file -k vmlinuz-
vmlinuz-
5) The problem is reproducible.
I don't know if this is a cosmetic issue, or if this bug has further implications on how caja detects and associates mime types.
Attached is a screen shot showing the issue.