Media/Device Type Spec???
bastian at kde.org
Wed Aug 18 22:40:11 EEST 2004
Yes, I think this is a valid approach.
On Wednesday 18 August 2004 18:38, Jerry Haltom wrote:
> ...(reposted from Gnome Utopia list)...
> I am just posting this to clear up my idea in the "we need a spec for
> handling mediums" thread. What do people think?
> We add new mime types to the shared mime package, for example (and just
> ...etc (these names could be better)
> A application's .desktop file declares that application as handling one
> more of these mime types.
> The .desktop file has a DeviceExec= line, accepting various substitution
> values. %d = Unix device file, %u = HAL udi. Or other stuff.
> Associations between a device/media type and it's application is handled
> EXACTLY as an association between a normal mime type and it's
> Some program (GVM) sets these.
> GVM launches the correct program when it needs to.
> Maybe these types could be retrieved from the device by HAL, for
> using volume.fstype, volume.is_disc, volume.is_rewritable... etc. Or
> we add info.types as a list of supported mime types.
> Of course, a device could be more than one mime type at the same time.
> Like, a CD drive could be both a cd-reader and a cd-writer. Whatever. ;)
> ... added this ...
> This doesn't seem to be hacking mime to me. It just alters the general
> definition of MIME from "type of data stream" to "type of resource".
> Isn't this appropriate?
> Also. DeviceExec is not needed, as somebody on Utopia pointed out:
> ... quote .. .Sean Middleditch
> If a single application is intended to handle two totally different
> types of devices using two totally different device identification
> methods, then use two .desktop files, just like we have multiple non-
> menu-entry .desktop files now for the new MIME system.
> ... end quote ...
> Sorry for the general disorder of this post. Busy day. ;)
> xdg mailing list
> xdg at freedesktop.org
bastian at kde.org | KDE Community World Summit 2004 | bastian at suse.com
bastian at kde.org | 21-29 August, Ludwigsburg, Germany | bastian at suse.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/xdg/attachments/20040818/4bb0967c/attachment.pgp
More information about the xdg