After installing Gramps, double-clicking .grdb file gives "Couldn't display" error

Bug #53113 reported by Matthew Paul Thomas
14
Affects Status Importance Assigned to Milestone
gramps (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Gramps 2.0.11, Ubuntu 6.06

1. Install Gramps, and create a Gramps database.
2. Close Gramps.
3. Double-click on the database file.

What should happen: It opens.
What actually happens: "Couldn't display "/home/mpt/Untitled_1.grdb"."

There seems to be no application associated with the filetype, which is odd since the file has the correct Gramps icon.

Comment from Albert Wagner: The packager of GRAMPS should contact the GRAMPS project for help in properly packaging GRAMPS. As Matthew reports above, the new mimetypes are improperly installed in Ubuntu 6.0.6, giving the new user a bad impression and improperly blaming the GRAMPS project.

description: updated
Revision history for this message
Alexander Roitman (shura) wrote :

As Albert Wagner noticed:
=============
   It also installed the following item in
   ~/.local/share/mime/application/x-extension-grdb.xml:

   <?xml version="1.0" encoding="utf-8"?>
   <mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info"
type="application/x-extension-grdb">
   <!--Created automatically by update-mime-database. DO NOT EDIT!-->
     <comment>grdb document</comment>
     </mime-type>

   and the following in ~/.local/share/mime/packages/Override.xml:

   <?xml version="1.0" encoding="UTF-8"?>
   <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
      <mime-type type="application/x-extension-grdb"><comment>grdb
document</comment><glob pattern="*.grdb"/></mime-type>
   </mime-info>
=============

What happens is that the gramps's files with the .grdb extension are now seen as having the mime type of application/x-extension-grdb instead of intended application/x-gramps type.

Why on earth would the update-mime-database auto-screwed up the mime types that we properly register in gramps? This is a major problem, as most users rely on format autodetection and that is done in gramps throug mime types.

Please contact <email address hidden> or #gramps on irc.freenode.net
A lot of gramps users run Ubuntu. This pulls the floor from under them.

Changed in gramps:
status: Unconfirmed → Confirmed
Revision history for this message
Alexander Roitman (shura) wrote :

More news from Albert:

   I think that update-mime-database creates Override.xml because I deleted it, ran "update-mime-database /usr/share/mime" and then noticed that a new version of Override.xml had appeared:

Does this ring the bell with anybody?

Revision history for this message
Alexander Roitman (shura) wrote :

Seems like something in gnome does this:
   http://www.gnome.org/~jrb/files/mime/

Not sure if this is nautilus or some other part of gnome.

Revision history for this message
Anthon Pang (anthon-pang) wrote :

It originates in our scripts (from Debian). This has been fixed in the upstream Debian package (gramps_2.2.3-1), described in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=398423

Revision history for this message
Duncan Lithgow (duncan-lithgow) wrote :

Anton, can this bug be marked as 'Fix Released'?

Revision history for this message
Duncan Lithgow (duncan-lithgow) wrote :

I've marked this 'fix released' it now works for me. Of course everyone should remember that .grdb files are not portable - so you can't throw copies around the place and expect to be able to double click on them!

Changed in gramps:
status: Confirmed → Fix Committed
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Fixed since Feisty.

Changed in gramps:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.