Add defaults for evince

So that comic books don't get opened in File Roller by default.
This commit is contained in:
Bastien Nocera 2018-12-12 12:32:00 +01:00
parent dca4b67958
commit f77d45f7c9
3 changed files with 38 additions and 3 deletions

34
evince-defaults.list Normal file
View File

@ -0,0 +1,34 @@
application/pdf=org.gnome.Evince.desktop;
application/x-bzpdf=org.gnome.Evince.desktop;
application/x-gzpdf=org.gnome.Evince.desktop;
application/x-xzpdf=org.gnome.Evince.desktop;
application/x-ext-pdf=org.gnome.Evince.desktop;
application/postscript=org.gnome.Evince.desktop;
application/x-bzpostscript=org.gnome.Evince.desktop;
application/x-gzpostscript=org.gnome.Evince.desktop;
image/x-eps=org.gnome.Evince.desktop;
image/x-bzeps=org.gnome.Evince.desktop;
image/x-gzeps=org.gnome.Evince.desktop;
application/x-ext-ps=org.gnome.Evince.desktop;
application/x-ext-eps=org.gnome.Evince.desktop;
application/illustrator=org.gnome.Evince.desktop;
application/x-dvi=org.gnome.Evince.desktop;
application/x-bzdvi=org.gnome.Evince.desktop;
application/x-gzdvi=org.gnome.Evince.desktop;
application/x-ext-dvi=org.gnome.Evince.desktop;
image/vnd.djvu+multipage=org.gnome.Evince.desktop;
application/x-ext-djv=org.gnome.Evince.desktop;
application/x-ext-djvu=org.gnome.Evince.desktop;
image/tiff=org.gnome.Evince.desktop;
application/x-cbr=org.gnome.Evince.desktop;
application/x-cbz=org.gnome.Evince.desktop;
application/x-cb7=org.gnome.Evince.desktop;
application/x-cbt=org.gnome.Evince.desktop;
application/x-ext-cbr=org.gnome.Evince.desktop;
application/x-ext-cbz=org.gnome.Evince.desktop;
application/x-ext-cb7=org.gnome.Evince.desktop;
application/x-ext-cbt=org.gnome.Evince.desktop;
application/vnd.comicbook+zip=org.gnome.Evince.desktop;
application/vnd.comicbook-rar=org.gnome.Evince.desktop;
application/oxps=org.gnome.Evince.desktop;
application/vnd.ms-xpsdocument=org.gnome.Evince.desktop;

View File

@ -60,8 +60,6 @@ application/vnd.sun.xml.math=libreoffice-math.desktop
application/vnd.stardivision.math=libreoffice-math.desktop
application/vnd.oasis.opendocument.database=libreoffice-base.desktop
application/vnd.sun.xml.base=libreoffice-base.desktop
application/pdf=org.gnome.Evince.desktop
application/postscript=org.gnome.Evince.desktop
application/x-qw=gnome-gnucash.desktop
application/x-gnucash=gnome-gnucash.desktop
application/vnd.lotus-1-2-3=gnumeric.desktop
@ -69,7 +67,6 @@ application/x-oleo=gnumeric.desktop
application/x-gnumeric=gnumeric.desktop
application/x-xbase=gnumeric.desktop
application/x-abiword=abiword.desktop
application/x-dvi=org.gnome.Evince.desktop
application/x-catalog=gpk-install-catalog.desktop
application/x-rpm=gpk-install-local-file.desktop
text/csv=libreoffice-calc.desktop

View File

@ -16,6 +16,9 @@ Source3: file-roller-defaults.list
# Generated with:
# for i in `grep MimeType= /usr/share/applications/eog.desktop | sed 's/MimeType=//' | sed 's/;/ /g'` ; do echo $i=eog.desktop\; >> eog-defaults.list ; done
Source4: eog-defaults.list
# Generated with:
# for i in `grep MimeType= /usr/share/applications/org.gnome.Evince.desktop | sed 's/MimeType=//' | sed 's/;/ /g'` ; do echo $i=org.gnome.Evince.desktop\; >> evince-defaults.list ; done
Source5: evince-defaults.list
# Work-around for https://bugs.freedesktop.org/show_bug.cgi?id=40354
Patch0: 0001-Remove-sub-classing-from-OO.o-mime-types.patch
@ -64,6 +67,7 @@ install -m 644 %SOURCE1 $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.
cat %SOURCE2 >> $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
cat %SOURCE3 >> $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
cat %SOURCE4 >> $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
cat %SOURCE5 >> $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
# Support fallback/generic mimeapps.list (currently based on gnome-mimeapps.list), see
# https://lists.fedoraproject.org/pipermail/devel/2015-July/212403.html