Mime types for folders

Křištof Želechovski giecrilj at stegny.2a.pl
Tue Feb 8 05:34:46 PST 2011


Dnia wtorek, 8 lutego 2011 o 12:40:25 Stef Bon napisał(a):
> Well, I'm building a construction which also requires/provides
> information about a directory.
> 
> for example:
> 
> local.dev.cdrom.audio

This is a locator (audio:/), not a media type.

> local.dev.cdrom.blank
> local.dev.cdrom.dvd
> local.dev.disk.ata.partition

These are block devices, not directories.

> 
> and
> 
> local.map.home
> 
> remote.net.smb.workgroup
> remote.net.smb.server
> remote.net.smb.share
> 
> I've called them subtypes. Well what's in a name, but I've used the
> name type already in the software I'm working on.
> 
> Well according to Chris the pattern can be set like:
> 
> 
> MimeType="inode/directory;role=remote.net.smb.workgroup"

I rather advertised "inode/directory;role=kde.desktop.images.user".

An SMB share is a remote inode, and the difference is in the location, not in the media type.   You may want to use a separate subtype for that to express the fact that the access protocol is different; I am not sure whether it would be the right thing to do though because the SMB access protocol was specifically designed to mimic the directory features present in the kernel filesystems.  (This is even more obvious with NFS where the network extension is built into the kernel.)

Best,
Chris


More information about the xdg mailing list