Fixing the launcher icon for harmattan (even if I am doing it wrong)
[gonvert] / data / template.desktop
index 2c2428c..a0a1e84 100644 (file)
@@ -11,10 +11,15 @@ Comment=Unit Converter
 #              cog.outl("Exec=/usr/local/bin/%s" % PROGRAM)
 #      else:
 #              raise RuntimeError("Unsupported desktop file flavor %r" % PROGRAM)
+#
+#      if VARIANT == "harmattan":
+#              cog.outl("Icon=/usr/share/icons/hicolor/80x80/apps/%s.png" % ICON_NAME)
+#      else:
+#              cog.outl("Icon=%s" % ICON_NAME)
 #]]]
 Exec=/usr/local/bin/Gonvert
-#[[[end]]]
 Icon=gonvert
+#[[[end]]]
 Categories=Engineering;Science;Education;Utility;Qt;
 Type=Application
 Encoding=UTF-8