Hello everybody,
the `mailcap` package (formerly `mime-support`) provides commands named `compose`, `edit`, `print` and `see`, which are aliases to
`run-mailcap`, which is used to open files (especially when `xdg-open`
is not installed).
`run-mailcap` is able to parse information from `/etc/mailcap` that
indicate alternative ways of opening a file according to the intent of
the user, in particular if they would prefer to edit the file, or just
display it. The commands listed above are the way this intent is
communicated.
It has been suggested to me via a pull request on Salsa that the
`mailcap` package could use the _alternatives_ system so that other
packages can provide their own version of the `run-mailcap` aliases. I
have no objection in principle, but before doing so I would like to
confirm on this mailing list:
- Is there interest from other package maintainers to provide their
own alternatives ?
- Are there objections ?
- What would be the interface ? For the `open` command, the interface
is minimal: the file to open as argument, and the rest is
unspecified.
Have a nice day,
Charles
--
Charles Plessy Nagahama, Yomitan, Okinawa, Japan Tooting from work,
https://mastodon.technology/@charles_plessy Tooting from home,
https://framapiaf.org/@charles_plessy
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEc0cUmcxg7Z7ugFlGxb1sjyKV1QIFAmI3/7EACgkQxb1sjyKV 1QJSWg/+KVqqWIrrbAbA3zNAfY37fktgAsds0RKNNgSfM32BXASLYN2+nuNesnKx p/391cqJLqFfFTbj3QEiEItZCVAdPvOgdaIxC5C4NYmqyENURLYZdSrAaTFvH3zX bzYA/k7jR4KUNVq54WWlMQTqkNln0MplVRDaIkWVaJ7jC6gMF2tzd0JvHXItww8R j3TyyR+y4m3pPMi7vtSVUrM87fb/sVJ8RitkteeyVXkqy4Kwjide98fwznmIzNev fayDOzWzMwd7RXwMbyRRxB7gNlUxioofa1gDI3WTM+mlPpqdBsGPWMr2z2XYFxJE Z/ga5UG1bnAVSchdwoIxtzK+BPKlzxMUb7cwBOP9mJSwfFQgTbh5avdjCgEGTt3D Y3xDnnXts+YYS/KW12wG5n2A6EhZv+3Eu03untaRwYtcTwY8e+uBKnudlk39qhG2 tPgWkXkGb3bkbBuIZQtST9Pbqci0gFFBemgMablMs7V69U1lELscEN3TKt901D2D wpXuXArCMxUHXn4oPmoDG5UCixbM1Wd/L0zWdGwEr5kQNhmjCRLUiOwLPqTebd2N 57hK+8dxaQqzLoFTZdHqfZdXxGybKykWWl8MnihYMgkGnsJEFBLo0SAYzcifWhEJ t0UNiHeEEjicVAT7ckLUtqlZBWKmK/2cLO0R