summaryrefslogtreecommitdiff
path: root/share/applications
diff options
context:
space:
mode:
authorDennis Real <github@tildepipe.org>2013-02-02 20:53:23 +0100
committerDennis Real <github@tildepipe.org>2013-02-02 20:53:23 +0100
commit353578ebc130f53547996ab87f5b3795c1360f3f (patch)
tree8a19969f7eb377f692892e24c24ba116940ba942 /share/applications
parent38c3c37b5c45691211ed62e40a6c5f503b054335 (diff)
parent6ea43a3213bb264525e04c729c67204f82c7a2c8 (diff)
downloadfeh-353578ebc130f53547996ab87f5b3795c1360f3f.zip
Merge branch 'master' of git://github.com/derf/feh
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..d57e33d
--- /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 *.desktop
+
+.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