Bug#397945: File type detection is broken and annoying ("cannot open FOO")

Josselin Mouette joss at debian.org
Wed Dec 13 22:16:02 CET 2006


reassign 397945 shared-mime-info
retitle 397945 Javascript code misidentified as C code
thanks

Le vendredi 10 novembre 2006 à 11:07 -0500, Anthony DeRobertis a écrit :
> Routinely I get dialogs that read along the lines of:
> 
>     Cannot open FOO.js
> 
>     The filename "FOO.js" indicates that this file is of type
>     "JavaScript program". The contents of the file indicate that the
>     file is of type "C source code". If you open this file, the file
>     might present a security risk to your system.
> 
>     Do not open the file unless you created the file yourself, or
>     received the file from a trusted source. To open the file,
>     rename the file to the correct extension for "C source code",
>     then open the file normally. Alternatively, use the Open With
>     menu to choose a specific application for the file.
> 
> This is not the most absurd one I've gotten. Once it decided that a WAV
> file — that's right, a binary file — is plain text! And then refused to
> play it...
> 
> 1. This file doesn't look like C code, at least not any more than any
>    other JavaScript code. Currently, it is available on the web at 
>    <http://asurvey.net/ccsfagent/media/survey.js>.
> 
> 2. It might present a security risk to the system about as much as, say,
>    a meteor. A meteor could hit the system. A C file named FOO.js is
>    probably no more likely to present a security risk when passed to
>    gvim.
> 
> 3. The suggestion to rename it is, of course, silly because it's been
>    misidentified.
>    
> 4. The suggestion to use Open With is silly because you have to do that
>    each and every time; there is no way to say "no, you idiotic
>    nautilus, you're wrong, it's a damned javascript file, shut up."
> 
> I've searched preferences, I've searched gtweakui-nautilus, I've
> searched gconf: There appears to be no way to turn off this. Please,
> please fix it...

Thanks for your report, and sorry for the delay.

The information to identify different file types belongs in
shared-mime-info, therefore I'm reassigning this bug.

Cheers,
-- 
Josselin Mouette                /\./\

"Do you have any more insane proposals for me?"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20061213/cb3c887b/attachment.pgp


More information about the Pkg-gnome-maintainers mailing list