MIME type handling in Gnome 2.8
Related Files:
This section will give you a small introduction which files need to be
modified in order to change the system for your needs. Each of the shown
files needs to be changed with root access.
-> /usr/share/applications/defaults.list
This file contains the applications which cause a double-click success.
All Mime types will point to a desktop file.
-> /usr/share/applications/[application_name].desktop
This is the file where "defaults.list" will point to. One of the most
important things inside this file is the entry "MimeType=".
-> /usr/share/applications/mimeinfo.cache
Contains information in similar form shown for file "defaults.list" in
same directory. This file contains ALL associations given to a mime type.
There is no need for a specified order of desktop files (see XMMS example
lateron)
-> /usr/share/mime (Directory)
This directory contains several information. The sub-directories -
excluding packages - contain information about given mime types. You'll
see that many mime types already exist.
The packages directory contains the DATABASE calles freedesktop.org.xml!
-> /usr/share/mime/globs
This file contains the file extensions, associated to the mime-types.
Example: MPlayer should start WMV by Double-Click
I've uninstalled Xine and Totem, cause i only use MPlayer. After
uninstalling them, i've seen the desaster: previously, Totem was the
default player. And now there was ... nothing!
After two days of internet research, this essay was created ... so you
havn't waste time as i have to do ;)
Creating the desktop file
If it is not already existing, create the file
"/usr/share/applications/mplayer.desktop" like this:
[Desktop Entry]
Name=Movie Player
Comment=Play multimedia files and media
Icon=mplayer.xpm
Exec=gmplayer %f
Terminal=false
MimeType=video/mpeg;video/x-msvideo;video/quicktime;video/x-ms-asf;video/x-ms-wmv
Type=Application
Categories=Application;AudioVideo;
Encoding=UTF-8
http://forums.fedoraforum.org/archive/index.php/t-26875.html
On Fri, 07 Mar 2008 02:43:38 -0600, Tobias Krais
<[EMAIL PROTECTED]> wrote:
Hi Alexandro,
Check your enviromental variables or your gnome variables. Usually there
is a default app that will open for whatever format it doesnt have
register. mine is mplayer. Changing that value or registering odf on ur
system might change the behavior.
I checked it and the applications are registered correctly. But OOo
still opens all documents with firefox. Where exactly should I correct
the gnome variables?
Can someone tell me, where OOo looks up the application for opening the
document?
Greetings, Tobias
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Alexandro Colorado
CoLeader of OpenOffice.org ES
http://es.openoffice.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]