Media handling changes in F9

Matthias Clasen mclasen at redhat.com
Tue Jan 22 20:18:43 UTC 2008


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





More information about the Fedora-desktop-list mailing list