I thought I should give a bit of an overview of some media handling changes that we have landed in rawhide over the last weeks.
The handling of automatic mounting and running of applications when media is inserted has been moved from gnome-volume-manager to nautilus. This is part of the longer-term plan to kill gnome-volume-manager, or at least make it totally unnecessary. Together with this, the first two tabs of the "Removable Drives and Media" capplet have been removed (which makes the name a bit of a farce...). The config ui for media handling can now be found in the "File Management Preferences" capplet, on the "Media" tab.
The content for this tab is driven by the MimeType field in desktop files, by means of a set of new "content types". Conceptually, these content types are close to mime types, but not quite the same. While mime types describe the format of individual files or data streams, content types describe containers or media.
Currently, the following content types have been introduced: x-content/blank-cd x-content/blank-dvd x-content/blank-bd x-content/blank-hddvd x-content/video-dvd x-content/video-vcd x-content/video-svcd x-content/video-blueray x-content/video-hddvd x-content/audio-cdda x-content/audio-dvd x-content/audio-player x-content/image-dcf x-content/image-picturecd
If you maintain an application that can handle one of these types, making it show up in the correct combo boxes in that dialog is as easy as adding the x-content/foo to the MimeType field in the desktop file, or adding a MimeType field if there isn't one already. Note that lists in desktop files end with a ;, ie
MimeType=application/x-ogg;x-content/audio-player;
is correct,
MimeType=application/x-ogg;x-content/audio-player
is not.
Matthias
On Jan 22, 2008 11:18 AM, Matthias Clasen mclasen@redhat.com wrote:
Currently, the following content types have been introduced:
Does the new world order gracefully handle the case of mixed media, for example an audio cd that has a data partition as well as audio data?
I bring that case up, because how it is specifcally handled now is one of my biggest pet peeves. Right now with default mounting settings insertion of this sort of object causes the data partition to be mounted and cause apps like sound juicer to fail when they attempt to extract the audio data. you have to unmount the data partition to get audio ripping to work..but since you can't unmount without also ejecting (via exposed ui).. you have to turn off auto-mounting completely for ripping to work. Madness.
So with that as context, does the new world order allow for mix media? Will there be a way to define how to "prefer" one content type over another when the media can be counted as multiple types? Obviously in this example, prefering to treating the media as audio over data is sanest because I don't fall into the "unmount but don't eject" trap like i do if its treated the other way around.
-jef
On Tue, 2008-01-22 at 12:18 -0900, Jeff Spaleta wrote:
On Jan 22, 2008 11:18 AM, Matthias Clasen mclasen@redhat.com wrote:
Currently, the following content types have been introduced:
Does the new world order gracefully handle the case of mixed media, for example an audio cd that has a data partition as well as audio data?
Yes it does. Although you'd need applications to use the libcdio-based CD source in GStreamer applications for this to work. We haven't done that yet, as the libcdio source in GStreamer is really slow.
David had some screenshots somewhere, but I don't have them at hand.
Hopefully, the libcdio problems will be sorted before F9.
Cheers
On Jan 22, 2008 1:10 PM, Bastien Nocera bnocera@redhat.com wrote:
Yes it does.
that's all i need to hear. As long as its on the map, i'm happy.
-jef
desktop@lists.fedoraproject.org