[Slackbuilds-users] google-earth: no icon in KDE's menu

Leonard Schmidt lems at gmx.net
Wed Aug 27 06:41:32 UTC 2014


Hello,

I noticed that while google-earth installs a .desktop file, there is no
icon displayed in KDE's menu. I changed the SlackBuild to do this:

--- google-earth.SlackBuild.orig	2014-01-30 06:31:45.000000000 +0100
+++ google-earth.SlackBuild	2014-08-27 08:35:14.783513681 +0200
@@ -63,6 +63,10 @@
 # Install a .desktop launcher:
 mv $PKG/opt/google/earth/free/google-earth.desktop $PKG/usr/share/applications/google-earth.desktop
 
+# Fix path to google-earth's icon
+sed -i 's,^Icon=.*,Icon=/usr/share/icons/hicolor/256x256/apps/googleearth.png,' \
+$PKG/usr/share/applications/google-earth.desktop
+
 # Copy icons to /usr/share/icons
 for icon in 16 22 24 32 48 64 128 256; do
   install -D $PKG/opt/google/earth/free/product_logo_${icon}.png \


So a simple sed line to fix the path to the icon. After this change,
Google Earth's icon is displayed in KDE's menu. I don't know if there is
a better way, but this worked for me.

Best regards

Leonard Schmidt


More information about the SlackBuilds-users mailing list