From: James B. <bu...@us...> - 2002-05-29 19:58:04
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I've attached an experimental patch which implements MIME types as extended file attributes, as supported on Linux by XFS and ext2 / ext3 in recent kernels. This moves type information from the name to meta-data, like in RISC OS and some other systems. The changes are as follows: + type_from_path() attempts to read the extended attribute 'user.mime_type'. If successful, the value is used as the MIME type. Otherwise the type is guessed from the extension as before. + There is a new menu item File -> Set MIME type... which leads to a new dialog allowing the user to set the value of this attribute. There are some problems: it isn't possible to set the type of more than one file at once, and copying files loses the extended attributes. Do people think this would be a good optional feature? James -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE89TKRhziz97O5hIYRAgt+AJ0Q7JdnQLtzKyTRCtxQE2X+Ni55HACcCPD8 K0NyxNFFirkbyXIc0CwXmXE= =esZR -----END PGP SIGNATURE----- |