Bug#260310: No proper file asscociation in GNOME 2.6/2.7 environment

Roland Stigge Roland Stigge <stigge@antcom.de>, 260310@bugs.debian.org
Tue, 20 Jul 2004 09:51:30 +0200


reassign 260310 nautilus
thanks

On Mon, 2004-07-19 at 23:12, Dan Korostelev wrote:
> Package: dia-gnome
> Version: 0.94-pre1-3
> Severity: minor
> 
> When I see my .dia file in say Nautilus it has DIA icon, but when I
> select it, the icon changes to XML and I can't open the file because
> Nautilus says: "the extensions says that file is for Dia, but its
> content is XML, so I won't open it, hehe". Looks like another
> shared-mime-info problem. Please, fix that if you can. Thanks!

I can confirm this problem. When clicking on a respective dia file, I
get a message window saying:

========================================================================
Cannot open Diagram1.dia

The filename "Diagram1.dia" indicates that this file is of type "Dia
diagram". The contents of the file indicate that the file is of type
"XML document". 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 "XML document", then open the file normally.
Alternatively, use the Open With menu to choose a specific application
for the file.
========================================================================

Dia actually supports two modes how to save diagrams. The above error
(which really shouldn't happen) occurs when opening a dia file
containing plain XML text. The other dia file mode, representing the
same XML text gzip-compressed, works fine with nautilus.

I noticed exactly the same problem with other XML files, e.g. glade
files. Therefore, the problem isn't dia specific, and I'm reassigning it
to nautilus. The file type recognition heuristics need to be refined.

Thanks for considering.

bye,
  Roland