gcmd-devel
[Top][All Lists]
Advanced

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

[gcmd-dev] gnome implementation of freedesktop mimetypes


From: Micha
Subject: [gcmd-dev] gnome implementation of freedesktop mimetypes
Date: Wed, 22 Mar 2006 16:26:05 +0100
User-agent: Alpenglühn 7.2

I notice that gcmd offers 'openoffice' for od* files, even if there's
no openoffice-usercreated file anywhere in the users .loacl file.
Must be the systemwide default cache in /usr/share/applications...
and indeed, there's a ooo-writer.desktop:

Version=1.0
Encoding=UTF-8
Terminal=false
Icon=ooo-writer
Type=Application
InitialPreference=2
Categories=Application;Office;X-Red-Hat-Base;X-SuSE-Core-Office;
Exec=ooffice -writer %U
MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.oasis.opendocument.text-master;application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.template;application/vnd.sun.xml.writer.global;application/vnd.stardivision.writer;application/msword;application/vnd.ms-word;application/x-doc;text/rtf;application/vnd.wordperfect;application/wordperfect
Name=OpenOffice.org Writer
Comment=Create and edit text and graphics in letters, reports, documents and 
Web pages by using Writer.
Comment[en]=Create and edit text and graphics in letters, reports, documents 
and Web pages by using Writer.
[ -> more different language comments -> ]
StartupNotify=true

(what's the latter ? splash screen ?)

There's no default list, only mimeinfo.cache.
It appears that if there's no default, the cache entry will be
used as default (what if there are several?).
So that works without any user customization.

There are lots of different options. for example, we have a 
'default-applications.desktop`which refers to the gnome 
control center module:

Exec=gnome-default-applications-properties
Icon=gnome-settings-default-applications
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;Application;Settings;AdvancedSettings;
OnlyShowIn=GNOME;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=control-center
X-GNOME-Bugzilla-Component=other capplets
X-GNOME-Bugzilla-Version=2.12.3


hmmm...a funny idea for maintaining the default app:
If, for any mimetype i'm interested in, i assign the same generic wrapper 
script 'gcmdmimedeafult' then i could handle them from within my script 
completely, using my own simplified list database, without the need to 
fiddle with the gnome thing. 
This would be for default app only (where you don't see any title
anyway because you just click on the file) not for the list of 
also available apps, that should be left to gnome.
Dunno if it makes sense, though. Would be just a silly hack.


   °
 /\/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]