RE: Suggestion for minor interoperability advance



I have looked through what RealPlayer does to support mime types to get
the differenses between GNOME and KDE in this area, since it tries to
support both environments for with mime-types. Realplayer seem to install
mime localy for each user, something which strikes me as stuid, but that
is another debate. 

If there is something else I can do to help this get resolved please let
me know.

Well this is how KDE does it:
It seems to me like KDE uses the agreed upon standard for
desktop/.kdelnk files also for mimetypes. they are being installed under
'${prefix}/share/mimelnk' The syntax is as follows, with one file per
filetype:

# KDE Config File
[KDE Desktop Entry]
Comment[C]=
Name=audio/aiff
MimeType=audio/aiff
DefaultApp=RealPlayer
Icon=/usr/RealPlayer7/rp7doc.xpm
Type=MimeType
Patterns=*.aiff;*.af;


GNOME uses another approach:
The files are stored under '${prefix}/share/mime-info

There are two files governing mimetypes names realplay.keys and
realplay.mime, these two files contain all info needed for mime-types for
this program: 
 
The syntax for the .keys file is as follows:
audio/x-pn-realaudio
	open=realplay %f &
	view=realplay %f &
	icon-filename=/usr/RealPlayer7/rp7doc.png
audio/vnd.rn-realaudio
	open=realplay %f &
	view=realplay %f &
	icon-filename=/usr/RealPlayer7/rp7doc.png
etc.

The .mime has the following syntax
audio/x-pn-realaudio
	ext: rmm ram
audio/vnd.rn-realaudio
	ext: ra
application/smil
	ext: smi smil
text/vnd.rn-realtext
	ext: rt
video/vnd.rn-realvideo
	ext: rv
etc.




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