Nautilus miss-identifies MIME type of certain scripts that begin with "--"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
shared-mime-info (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Binary package hint: nautilus
When opening the properties window for certain lua scripts the "Type:" is reported as "VHDL document" and "MIME type:" as "text/x-vhdl" when the file is infact a valid lua script.
gnomevfs-info core.lua | grep MIME
for the offending file however returns "MIME type : text/x-lua"
As far as i can tell this is linked to using comments on the first line of the lua script, for example
-- [[ test ]]
tableT=
for key,val in pairs(tableT) do
print(val)
end
Is Identified as a VHDL document whereas
tableT=
-- [[ test ]]
for key,val in pairs(tableT) do
print(val)
end
Is properly Identified as a lua script.
I though i should add this is
» Ubuntu version 7.04 Feisty Fawn
» Nautilus 2.18.1