Forcing absolute path for icons like other people
authorEd Page <eopage@byu.net>
Sat, 13 Aug 2011 16:40:27 +0000 (11:40 -0500)
committerEd Page <eopage@byu.net>
Sat, 13 Aug 2011 16:42:11 +0000 (11:42 -0500)
Makefile
data/template.desktop

index 156c83e..0d217b3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -144,6 +144,7 @@ $(DESKTOP_FILES): data/template.desktop
        cog.py -d \
                -D VARIANT=$(VARIANT) \
                -D PROGRAM=$(PROGRAM) \
+               -D ICON_NAME=$(PROJECT_NAME) \
                -o $@ $<
 
 
index 6ba3942..ecfe3b2 100644 (file)
@@ -11,10 +11,15 @@ Comment=RPN Calculator
 #              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/apps/64x64/%s.png" % ICON_NAME)
+#      else:
+#              cog.outl("Icon=%s" % ICON_NAME)
 #]]]
 Exec=/usr/local/bin/ejpi-calc
-#[[[end]]]
 Icon=ejpi
+#[[[end]]]
 Categories=Engineering;Science;Education;Utility;Qt;
 Type=Application
 Encoding=UTF-8