Fixing the launcher icon for harmattan (even if I am doing it wrong)
[gonvert] / data / template.desktop
1 [Desktop Entry]
2 Name=Gonvert
3 GenericName=Unit Converter
4 Comment=Unit Converter
5 #[[[cog
6 #       if VARIANT == "fremantle":
7 #               cog.outl("Exec=/usr/bin/run-standalone.sh /usr/local/bin/%s" % PROGRAM)
8 #       elif VARIANT == "harmattan":
9 #               cog.outl("Exec=/usr/bin/invoker --single-instance --type=e /usr/local/bin/%s" % PROGRAM)
10 #       elif VARIANT == "ubuntu":
11 #               cog.outl("Exec=/usr/local/bin/%s" % PROGRAM)
12 #       else:
13 #               raise RuntimeError("Unsupported desktop file flavor %r" % PROGRAM)
14 #
15 #       if VARIANT == "harmattan":
16 #               cog.outl("Icon=/usr/share/icons/hicolor/80x80/apps/%s.png" % ICON_NAME)
17 #       else:
18 #               cog.outl("Icon=%s" % ICON_NAME)
19 #]]]
20 Exec=/usr/local/bin/Gonvert
21 Icon=gonvert
22 #[[[end]]]
23 Categories=Engineering;Science;Education;Utility;Qt;
24 Type=Application
25 Encoding=UTF-8
26 Version=1.0
27 X-Osso-Type=application/x-executable