Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

Commit

Permalink
Add and install a xv.desktop file.
Browse files Browse the repository at this point in the history
This is from xv-20081218-fabian-greffrath-04-install-desktop.patch.
Additional MIME types were added.
  • Loading branch information
DavidGriffith committed May 4, 2017
1 parent c11f232 commit 017ebc6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ MANDIR = $(PREFIX)/share/man/man1
MANSUF = 1
DOCDIR = $(PREFIX)/share/doc/xv
XPMDIR = $(PREFIX)/share/pixmaps
APPDIR = $(PREFIX)/share/applications
LIBDIR = $(PREFIX)/lib/xv
SYSCONFDIR = /etc
DESTDIR =
Expand Down Expand Up @@ -444,7 +445,10 @@ install: all
$(MKDIR) $(DESTDIR)$(XPMDIR)
cp contrib/xv.xpm $(DESTDIR)$(XPMDIR)/.
chmod 644 $(DESTDIR)$(XPMDIR)/xv.xpm

#
$(MKDIR) $(DESTDIR)$(APPDIR)
cp contrib/xv.desktop $(DESTDIR)$(APPDIR)/.
chmod 644 $(DESTDIR)$(APPDIR)/xv.desktop
#
#$(MKDIR) $(DESTDIR)$(SYSCONFDIR)
#cp xv_mgcsfx.sample $(DESTDIR)$(SYSCONFDIR)/xv_mgcsfx
Expand Down
9 changes: 9 additions & 0 deletions contrib/xv.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Name=XV
Comment=An interactive image manipulation program
Icon=xv
TryExec=xv
Exec=xv %F
Categories=Graphics;RasterGraphics;Viewer;
MimeType=image/gif;image/jpeg;image/tiff;image/postscript;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-xbitmap;image/x-xpixmap;image/x-ms-bmp;image/cmu-raster;image/x-rgb;image/targa;image/fits;image/png;image/pm;image/webp;image/jp2;image/jpx;image/jpm;image/g3fax

0 comments on commit 017ebc6

Please sign in to comment.