koldfront

Choosing what program to open what file; mailcap.order #debian

๐Ÿ•™๏ธŽ - 2019-11-07

Configuring what program to use to open what file is quite straight forward: Edit /etc/mailcap.order, run update-mime.

Only problem is, when I did that, I got:

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

The man-page for mailcap.order helpfully says: "Remember that this files [sic] takes package names and not executable names."

But, the command "evince" comes in the package called "evince", so I assumed the "package name" was "evince". That holds for "eog", which comes in the package "eog", and is also a GNOME application, as far as I know, and which update-mime doesn't complain about.

Oh well, strace -e openat to the rescue, and - hey presto - it turns out the "package name" for evince is "org.gnome.Evince". I plopped that into mailcap.order, and now Bob's my uncle. Nice to know.

Add comment

To avoid spam many websites make you fill out a CAPTCHA, or log in via an account at a corporation such as Twitter, Facebook, Google or even Microsoft GitHub.

I have chosen to use a more old school method of spam prevention.

To post a comment here, you need to:

ยน Such as Thunderbird, Pan, slrn, tin or Gnus (part of Emacs).

Or, you can fill in this form:

+=