Krolyxon
Commit 45f4f6d

Branches

Refs →

nsxiv45f4f6d

Add desktop file and appropriate lines to Makefile.

Author
Bartłomiej Piotrowski
Date
2012-04-17 17:48 +0200
Parent
bca3666
Commit
45f4f6d3c48c27d36f4ea7942c7a0d98f6871a24

+11 −0

2 files changed

  1. M Makefile +4 −0
  2. A sxiv.desktop +7 −0
M Makefile View
@@ -41,6 +41,8 @@ clean:
4141 install: all
4242 @echo "installing executable file to $(DESTDIR)$(PREFIX)/bin"
4343 @install -D -m 755 sxiv $(DESTDIR)$(PREFIX)/bin/sxiv
44+ @echo "installing desktop file to $(DESTDIR)$(PREFIX)/share/applications"
45+ @install -D -m 0644 sxiv.desktop $(DESTDIR)$(PREFIX)/share/applications/sxiv.desktop
4446 @echo "installing manual page to $(DESTDIR)$(MANPREFIX)/man1"
4547 @mkdir -p $(DESTDIR)$(MANPREFIX)/man1
4648 @sed "s/VERSION/$(VERSION)/g" sxiv.1 > $(DESTDIR)$(MANPREFIX)/man1/sxiv.1
@@ -49,5 +51,7 @@ install: all
4951 uninstall:
5052 @echo "removing executable file from $(DESTDIR)$(PREFIX)/bin"
5153 @rm -f $(DESTDIR)$(PREFIX)/bin/sxiv
54+ @echo "removind desktop file from $(DESTDIR)$(PREFIX)/share/applications"
55+ @rm -f $(DESTDIR)$(PREFIX)/share/applications/sxiv.desktop
5256 @echo "removing manual page from $(DESTDIR)$(MANPREFIX)/man1"
5357 @rm -f $(DESTDIR)$(MANPREFIX)/man1/sxiv.1
A sxiv.desktop View
@@ -0,0 +1,7 @@
1+[Desktop Entry]
2+Type=Application
3+Name=sxiv
4+GenericName=Image Viewer
5+Exec=sxiv %F
6+MimeType=image/bmp;image/gif;image/jpeg;image/jpg;image/png;image/tiff;image/x-bmp;
7+NoDisplay=true