summaryrefslogtreecommitdiff
path: root/share/applications
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-01-31 11:20:29 +0100
committerDaniel Friesel <derf@finalrewind.org>2013-01-31 11:20:29 +0100
commite1121600936f8f2753dc214ff71799e218d11fd2 (patch)
treededa88ef5fbef49886885a2b0ba84d7be89036db /share/applications
parentf104f321475d0828a5d7600919d32635b0f77a68 (diff)
add a desktop file (closes #98)
Diffstat (limited to 'share/applications')
-rw-r--r--share/applications/Makefile24
-rw-r--r--share/applications/feh.pre10
2 files changed, 34 insertions, 0 deletions
diff --git a/share/applications/Makefile b/share/applications/Makefile
new file mode 100644
index 0000000..5f4da44
--- /dev/null
+++ b/share/applications/Makefile
@@ -0,0 +1,24 @@
+include ../../config.mk
+
+SOURCES = ${shell echo *.pre}
+TARGETS = ${SOURCES:.pre=.desktop}
+
+all: ${TARGETS}
+
+.pre.desktop:
+ sed \
+ -e 's/\$$VERSION\$$/${VERSION}/g' \
+ -e 's/\$$DATE\$$/'"$$(date '+%B %d, %Y')"/g \
+ -e 's/\$$MAN_CURL\$$/${MAN_CURL}/' \
+ -e 's/\$$MAN_DEBUG\$$/${MAN_DEBUG}/' \
+ -e 's/\$$MAN_EXIF\$$/${MAN_EXIF}/' \
+ -e 's/\$$MAN_XINERAMA\$$/${MAN_XINERAMA}/' \
+ -e 's:\$$IMAGEDIR\$$:${image_dir}:' \
+ < ${@:.desktop=.pre} > $@
+
+clean:
+ rm -f *.1
+
+.SUFFIXES: .pre .desktop
+
+.PHONY: clean
diff --git a/share/applications/feh.pre b/share/applications/feh.pre
new file mode 100644
index 0000000..d7b22c7
--- /dev/null
+++ b/share/applications/feh.pre
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Feh
+Comment=Fast Imlib2-based Image Viewer
+Exec=feh %f
+Terminal=false
+Type=Application
+Icon=$IMAGEDIR$/logo.svg
+Categories=Graphics;2DGraphics;Viewer;
+MimeType=image/bmp;image/gif;image/jpeg;image/jpg;image/pjpeg;image/png;image/tiff;image/x-bmp;image/x-pcx;image/x-png;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-tga;image/x-xbitmap;
+Name[en_US]=feh