[Utopia] Media/Device Type Spec???



I am just posting this to clear up my idea in the "we need a spec for
handling mediums" thread.

We add new mime types to the shared mime package, for example (and just an
example):

device/cd-reader
device/dvd-reader
device/cd-writer
device/dvd-writer
device/audio-cd
device/data-cd
device/dvd
device/blank-cd
device/blank-dvd
device/svcd
device/camera
device/flash-card
...etc (these names could be better)

A application's .desktop file declares that application as handling one or
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 applications.

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 instance
using volume.fstype, volume.is_disc, volume.is_rewritable... etc. Or maybe
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. ;)





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]