[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#363486: dpkg: [update-alternatives] New categories for: WORD, EXCEL, MEDIA-PLAYER etc.



On 6/12/06, Kurt Roeckx <kurt@roeckx.be> wrote:
I'm not sure if the alternatives system is the best place to
"register" mime types.  I'm also not sure that a Debian specific
solution as the alternatives system is the best way to go.  But I
can see why this would be useful, and maybe it should work in
combination with the alternatives system.

Opening based on mime-types is a solved problem, see /etc/mailcap. You
can even specify different programs depending on whether you're in X
or not. See run-mailcap.

In particular: see <mime-type>:<filename> will determine the correct
viewer for the file and display it. There is also edit, compose and
print. Preferences can be consigured globally using
/etc/mailcap.order.
--
Martijn van Oosterhout <kleptog@gmail.com> http://svana.org/kleptog/



Reply to: