The mupdf.desktop file, which app-text/mupdf-1.5 installs in /usr/share/applications, refers to the script mupdf-select-file. This script was part of mupdf-1.4, but has been dropped in mupdf-1.5 (cf. https://bugs.gentoo.org/show_bug.cgi?id=508076). As a consequence, mimeopen fails to open pdf files with mupdf. Reproducible: Always Steps to Reproduce: 1. Install app-text/mupdf-1.5 2. Make sure that dev-perl/File-MimeInfo (to which mimeopen belongs) is installed 3. Try to open a pdf file: mimeopen -a test.pdf 4. Select mupdf as application Actual Results: mimeopen prints "Opening test.pdf with MuPDF (application/pdf)" and fails with exit status 1. Expected Results: mimeopen starts mupdf. mupdf.desktop is defined in the patch files/mupdf-1.4-old-debian-files.patch, which is applied by mupdf-1.5.ebuild and mupdf-9999.ebuild. Replacing the two lines Exec=mupdf-select-file %f TryExec=mupdf-select-file in that patch by Exec=mupdf %f TryExec=mupdf solves the problem for me.
Created attachment 385988 [details, diff] patch for files/mupdf-1.4-old-debian-files.patch
Created attachment 385990 [details, diff] patch for files/mupdf-1.4-old-debian-files.patch
+*mupdf-1.5-r1 (10 Oct 2014) + + 10 Oct 2014; Michael Weber <xmw@gentoo.org> + +files/mupdf-1.5-old-debian-files.patch, +mupdf-1.5-r1.ebuild, + -mupdf-1.5.ebuild, mupdf-9999.ebuild: + Fix .desktop file (bug 524376, thanks Dirk Sondermann). +