IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New It's magic
\r\nIIRC the Linux desktop file managers work similarly to BeOS but just check the file type or extension on every opening as they have nowhere convenient (ie: LCD) to store the MIME type.\r\n
\r\n\r\n

/etc/mime-magic

--\r\n
Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]\r\n
[link|http://kmself.home.netcom.com/|http://kmself.home.netcom.com/]\r\n
What part of "gestalt" don't you understand?\r\n
[link|http://twiki.iwethey.org/twiki/bin/view/Main/|TWikIWETHEY] -- an experiment in collective intelligence. Stupidity. Whatever.\r\n
\r\n
   Keep software free.     Oppose the CBDTPA.     Kill S.2048 dead.\r\n[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html]\r\n
New Yep. That's it
A file listing which magic bytes within a file indicate the likely file type Those magic bytes are then mapped to a mime type. the file command uses a similar (the same?) database.

I suppose it isn't all that different to just check the magic whenever the user opens a file but I have had at least one occasion where I wanted to change the mime type of a particular file that Nautilus (the Gnome file manager) didn't guess right. With BeOS's scheme, the magic check is only done when there isn't a mime type attribute already associated with the file. Once that attribute is created you can tweak it if you wish. And I was mistaken. BeOS checks the extension first, then the magic byte signature.

According to the Nautilus user manual (I don't have a working Gnome here to verify), you can assign primary and secondary actions to either a general mime type or to a particular file. I don't know why I missed this in my case. The UI for such things in Gnome is rather bad at the moment.


OT PS: The is the wrong mime magic: [link|http://www.annamime.com/wow.html|http://www.annamime.com/wow.html]
--
Chris Altmann
     Fun with .com and Acrobat Distiller - (altmann) - (6)
         File name extensions - (orion) - (5)
             It might, but... - (altmann) - (4)
                 Longhorn and other systems - (orion) - (1)
                     All file systems are databases. - (ChrisR)
                 It's magic - (kmself) - (1)
                     Yep. That's it - (altmann)

This is leading up to dirtsnakes, I can tell...
36 ms