#934289 evince-common: Make evince compatible with mailcap.order

#934289#5
Date:
2019-08-09 08:07:32 UTC
From:
To:
Dear Maintainer,

I would like 'see foo.pdf' to open evince (for all users).

I guess mailcap.order(5) is the right place to give evince priority over other
pdf readers. Unfortunately that does not work: I added the line

evince:application/pdf

to /etc/mailcap.order and ran update-mime (as root) and got the following
warning:

Warning: package evince listed in /etc/mailcap.order does not have mailcap entries.

(and see foo.pdf still opens another application).

Could you please add a file /usr/lib/mime/packages/evince to package
evince-common with the (current) output of 'grep evince /etc/mailcap' and run
update-mime in evince.postinst (or evince-common.postinst)?

Adding such a file manually solved the issue for me and was the solution
suggested to a similar question on askubuntu:

https://askubuntu.com/questions/1118437/promote-evince-in-etc-mailcap-order

Yours,

J. Courant.

#934289#8
Date:
2019-08-09 08:35:15 UTC
From:
To:
* Judicael Courant <judicael@jcourant.fr>, 2019-08-09, 10:07:

FWIW, you should be able to make it work by using the name of the deskop
file:

org.gnome.Evince:application/pdf

Admittedly this is neither intuitive nor (AFAIK) documented anywhere. :-/

#934289#11
Date:
2019-09-30 18:18:10 UTC
From:
To:
In the mean time, someone opened #935426 asking for documentation
update.