Mime types for folders
giecrilj at stegny.2a.pl
Mon Feb 7 11:41:48 PST 2011
Dnia poniedziałek, 7 lutego 2011 o 13:15:32 Keith Poole napisał(a):
> Hey everyone,
> I'm not 100% sure that this is the right mailing list for such a question,
> but I figure you lot should know better than anyone.
> At the moment I'm looking for a way to set a MIME type for a folder
> (probably with an extension via a glob pattern), and then override the
> default action, icon, etc.
If you subclass a type, the resulting type should be fundamentally different. For example, an open document is zipped, but unpacking it would not normally be useful. It is not the case with directories, unless they are really special, like virtual directories unknown to the underlying operating system.
If you want to add tags to directories, you could do it by tagging them with media type parameters, in the following way:
Note: This construct is currently unsupported by XDG. I sincerely hope it will be.
More information about the xdg