Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141371 - googleearth: cannot open .kml files in Gnome (mime issue)
Summary: googleearth: cannot open .kml files in Gnome (mime issue)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-22 03:56 UTC by Ed Catmur
Modified: 2006-07-23 23:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
mime-magic.patch (mime-magic.patch,585 bytes, patch)
2006-07-22 03:57 UTC, Ed Catmur
Details | Diff
mime-magic.patch (mime-magic.patch,572 bytes, patch)
2006-07-23 18:08 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2006-07-22 03:56:33 UTC
Downloaded .kml files can't be opened in Gnome.

They display as kml files until you click on them, then the mime magic kicks in and they change to xml files, lacking the Google Earth association.

This can be remedied by adding some magic to the googleearth mime file. Patch to follow.
Comment 1 Ed Catmur 2006-07-22 03:57:17 UTC
Created attachment 92479 [details, diff]
mime-magic.patch

Some fairly specific magic.

Needs to be applied at install time.
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2006-07-23 08:12:07 UTC
thanks, I have added it to potage - can you please get it upstream and notify the google devs od the problem?
Comment 3 Ed Catmur 2006-07-23 18:08:35 UTC
Created attachment 92588 [details, diff]
mime-magic.patch

Sorry, I just discovered that that patch doesn't work with recent .kml files from Google.

This patch just matches the initial portion of the xmlns - "<kml xmlns="http://earth.google.com/kml/". It should be quite a bit more robust.

I'm trying to find out how to report bugs now...
Comment 4 Ed Catmur 2006-07-23 18:10:25 UTC
Reopened for improved patch (KML version 2.1).

Thanks!
Comment 5 Ed Catmur 2006-07-23 18:28:28 UTC
Reported upstream (pity they don't have a bugzilla). I'll post back if/when I get any reply.
Comment 6 Stefan Schweizer (RETIRED) gentoo-dev 2006-07-23 23:11:40 UTC
thanks, I have updated the patch
Comment 7 Stefan Schweizer (RETIRED) gentoo-dev 2006-07-23 23:11:40 UTC
thanks, I have updated the patch· I hope google will apply it.