nsxiv45f4f6d
Add desktop file and appropriate lines to Makefile.
+11 −0
2 files changed
- M Makefile +4 −0
- A sxiv.desktop +7 −0
| @@ -41,6 +41,8 @@ clean: | |||
| 41 | 41 | install: all | |
| 42 | 42 | @echo "installing executable file to $(DESTDIR)$(PREFIX)/bin" | |
| 43 | 43 | @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 | |
| 44 | 46 | @echo "installing manual page to $(DESTDIR)$(MANPREFIX)/man1" | |
| 45 | 47 | @mkdir -p $(DESTDIR)$(MANPREFIX)/man1 | |
| 46 | 48 | @sed "s/VERSION/$(VERSION)/g" sxiv.1 > $(DESTDIR)$(MANPREFIX)/man1/sxiv.1 | |
| @@ -49,5 +51,7 @@ install: all | |||
| 49 | 51 | uninstall: | |
| 50 | 52 | @echo "removing executable file from $(DESTDIR)$(PREFIX)/bin" | |
| 51 | 53 | @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 | |
| 52 | 56 | @echo "removing manual page from $(DESTDIR)$(MANPREFIX)/man1" | |
| 53 | 57 | @rm -f $(DESTDIR)$(MANPREFIX)/man1/sxiv.1 | |
| @@ -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 | |