Hi, Here is a patch for having both the menu and the mime types in KDE
-- -°) Patrick Valsecchi /\\ _\_v http://www.thus.ch/~patrick
--- make-googleearth-package.orig 2006-08-16 20:49:22.000000000 +0200 +++ make-googleearth-package 2006-08-16 21:55:38.000000000 +0200 @@ -103,6 +103,67 @@ EOF } +function make_kde_menu_entry() { + cat <<EOF >googleearth.desktop +[Desktop Entry] +Encoding=UTF-8 +Name=Google Earth +GenericName=3D planet viewer +Comment=Explore, search and discover the planet +Exec=/usr/bin/googleearth %f +Terminal=false +MultipleArgs=false +Type=Application +Icon=/usr/share/pixmaps/googleearth.xpm +Categories=Application;Network +MimeType=application/vnd.google-earth.kml+xml;application/vnd.google-earth.kmz;application/earthviewer;application/keyhole +EOF +} + +function make_kde_mime_entry() { + cat <<EOF >vnd.google-earth.kmz.desktop +[Desktop Entry] +Comment=Google Earth Placemarker +Hidden=false +Icon=/usr/share/pixmaps/googleearth.xpm +MimeType=application/vnd.google-earth.kmz +Patterns=*.kmz +Type=MimeType +X-KDE-AutoEmbed=false +EOF + + cat <<EOF >vnd.google-earth.kml+xml.desktop +[Desktop Entry] +Comment=Google Earth Placemarker +Hidden=false +Icon=/usr/share/pixmaps/googleearth.xpm +MimeType=application/vnd.google-earth.kml+xml +Patterns=*.kml +Type=MimeType +X-KDE-AutoEmbed=false +EOF + + cat <<EOF >keyhole.desktop +[Desktop Entry] +Comment=Keyhole Markup Language data +Hidden=false +Icon=/usr/share/pixmaps/googleearth.xpm +MimeType=application/keyhole +Patterns= +Type=MimeType +EOF + + cat <<EOF >earthviewer.desktop +[Desktop Entry] +Comment=Keyhole Markup Language data +Hidden=false +Icon=/usr/share/pixmaps/googleearth.xpm +MimeType=application/earthviewer +Patterns= +Type=MimeType +EOF +} + function make_mime_entry() { cat <<EOF >googleearth application/vnd.google-earth.kml+xml; /usr/bin/googleearth '%s'; edit=/usr/bin/googleearth '%s'; test=test "$DISPLAY" != "" ;description="Keyhole Markup Language data"; nametemplate=%s.kml @@ -175,6 +236,16 @@ make_menu_entry cd "$instdir" + mkdir -p usr/share/applications + cd usr/share/applications + make_kde_menu_entry + + cd "$instdir" + mkdir -p usr/share/mimelnk/application + cd usr/share/mimelnk/application + make_kde_mime_entry + + cd "$instdir" mkdir -p usr/lib/mime/packages cd usr/lib/mime/packages make_mime_entry