On 6/12/06, Kurt Roeckx <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> http://svana.org/kleptog/


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to