Mime types for folders
platima at gmail.com
Mon Feb 7 16:28:38 PST 2011
A good example of what I'm trying to do would be to allow *.DVD folders to open in a specified application as opposed to opening in the file browser. Of course the user may still want to browse the folder etc, hence my subclassing.
MIME types may not be the way to do this, but I was hoping for a solution that was transparent to the file manager as much as possible. The last thing I want to do is go patching thunar, konq, nautilus, etc.
On 08/02/2011, at 3:41 AM, Křištof Želechovski <giecrilj at stegny.2a.pl> wrote:
> 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.
> Hello Keith,
> 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