From 3acde9054e3af41e46d6b1df72976279e6caf9e2 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Sat, 13 Aug 2011 11:40:27 -0500 Subject: [PATCH] Forcing absolute path for icons like other people --- Makefile | 1 + data/template.desktop | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 156c83e..0d217b3 100644 --- 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 $@ $< diff --git a/data/template.desktop b/data/template.desktop index 6ba3942..ecfe3b2 100644 --- a/data/template.desktop +++ b/data/template.desktop @@ -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 -- 1.7.9.5