Fill desktop file with correct path
authorJoachim Breitner <mail@joachim-breitner.de>
Fri, 24 Jul 2009 10:44:27 +0000 (10:44 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Fri, 24 Jul 2009 10:44:27 +0000 (10:44 +0000)
Makefile.am
sm.desktop [deleted file]
sm.desktop.in [new file with mode: 0644]

index ff2c2da..0007de6 100644 (file)
@@ -6,8 +6,11 @@ sm_LDADD = $(DEPS_LIBS)
 execgamesdir= $(prefix)/games
 execgames_PROGRAMS=sm
 
+sm.desktop: sm.desktop.in
+       sed -e s%@BINPATH@%${execgamesdir}% <$< >$@
+
 desktopdir = $(datadir)/applications
-dist_desktop_DATA = sm.desktop
+desktop_DATA = sm.desktop
 
 icondir = $(datadir)/icons/hicolor/48x48/apps
 dist_icon_DATA = sm.png
@@ -27,4 +30,5 @@ update-icon-cache:
 
 
 dist_man_MANS = sm.6
-EXTRA_DIST = sm.py
+EXTRA_DIST = sm.py sm.desktop.in
+CLEANFILES = sm.desktop
diff --git a/sm.desktop b/sm.desktop
deleted file mode 100644 (file)
index 024f9c6..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-[Desktop Entry]
-Name=Screen-Message
-Comment=Displays a short text fullscreen
-Exec=sm
-Icon=sm
-Terminal=false
-Type=Application
-Categories=GTK;Application;Utility;
diff --git a/sm.desktop.in b/sm.desktop.in
new file mode 100644 (file)
index 0000000..f37e974
--- /dev/null
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Screen-Message
+Comment=Displays a short text fullscreen
+Exec=@BINPATH@/sm
+Icon=sm
+Terminal=false
+Type=Application
+Categories=GTK;Application;Utility;