Bug 607 - gdesklets mime type missing
Summary: gdesklets mime type missing
Status: RESOLVED NOTOURBUG
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high enhancement
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-07 16:45 UTC by Christopher Rawlings
Modified: 2004-08-15 14:23 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
proposed gdesklet mime type definition (1.96 KB, text/xml)
2004-05-07 16:51 UTC, Christopher Rawlings
Details

Description Christopher Rawlings 2004-05-07 16:45:18 UTC
I am using gnome and nautilus 2.6.1 under Gentoo Linux 2004.1 (2.6.5 kernel),
along with shared-mime-info version 0.14.  The newer version of gnome-vfs in
this release of Gentoo apparently uses the shared-mime-info package, but the
shared-mime-info database does not contain a mime type for gDesklet Displays. 
As a result, nautilus incorrectly identifies gdesklet files (*.display) as mime
type 'text/xml' instead of 'application/x-gdesklets-display'.

When the gdesklet display file is double clicked within nautilus, it is opened
up as an xml file in the default internet browser.  The desired functionality is
to have nautilus add the actual gdesklet display to the desktop when it is
double-clicked within nautilus.

The following xml mime type definition fixes the problem:

<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
    <mime-type type="application/x-gdesklets-display">
        <comment>gDesklets display file</comment>
        <comment xml:lang="az">gDesklets displey fayl��</comment>
        <comment xml:lang="ca">Fitxer de visualitzaci�� de gDesklets</comment>
        <comment xml:lang="cs">Soubor zobrazen�� gDesklets</comment>
        <comment xml:lang="de">gDesklets-Display-Datei</comment>
        <comment xml:lang="el">���~A�~G������ �����~F�������~C���~B
gDesklets</comment>
        <comment xml:lang="es">Archivo de visor de gDesklets</comment>
        <comment xml:lang="eu">gDesklets bistaratzaile fitxategia</comment>
        <comment xml:lang="fr">Fichier de composant graphique de gDesklets</comment>
        <comment xml:lang="hr">Datoteka prikaza gDeskletsa</comment>
        <comment xml:lang="it">File visore gDesklets</comment>
        <comment xml:lang="ja">gDesklets display �~C~U�~B��~B��~C�</comment>
        <comment xml:lang="ko">gDesklets �~T~T�~J��~T~L�| ~H�~]� �~L~L�~]�</comment>
        <comment xml:lang="lt">gDesklets ekrano byla</comment>
        <comment xml:lang="ms">fail paparan gDesklets</comment>
        <comment xml:lang="nl">gDesklets applet-bestand</comment>
        <comment xml:lang="no">gDesklets visningsfil</comment>
        <comment xml:lang="pl">Plik wy�~[wietlania gDesklets</comment>
        <comment xml:lang="pt">Ficheiro de apresenta����o gDesklets</comment>
        <comment xml:lang="pt_BR">gDesklets arquivo display</comment>
        <comment xml:lang="ru">gDesklets �����~A�����������~K�� �~D������</comment>
        <comment xml:lang="sq">file monitor i gDesklets</comment>
        <comment xml:lang="sr">�~T���~B���~B������ ���~@����������
gDesklets-��</comment>
        <comment xml:lang="sr@Latn">Datoteka prikaza gDesklets-a</comment>
        <comment xml:lang="sv">gDesklets-displayfil</comment>
        <comment xml:lang="tr">gDesklets g��r��n��m dosyas��</comment>
        <magic priority="50">
            <match offset="0:64" type="string" value="&lt;display" />
        </magic>
        <glob pattern="*.display"/>
    </mime-type>
</mime-info>

After adding an xml file with this definition to '/usr/share/mime/packages' and
running update-mime-database, nautilus correctly identifies gDesklet displays. 
This can be confirmed by running 'gnomevfs-info' for a .display file which shows
the correct mime type:

root # gnomevfs-info
/usr/share/gdesklets/Displays/desklet-psidisplays/meminfo.display
Name              : meminfo.display
Type              : Regular
MIME type         : application/x-gdesklets-display
Comment 1 Christopher Rawlings 2004-05-07 16:51:13 UTC
Created attachment 273 [details]
proposed gdesklet mime type definition
Comment 2 Christian - Manny Calavera - Neumair 2004-07-03 13:36:47 UTC
gDesklets currently has its own package. Why should we ship it with the fdo package?

regs,
 Chris
Comment 3 Christopher Rawlings 2004-07-08 14:27:33 UTC
(In reply to comment #2)
> gDesklets currently has its own package. Why should we ship it with the fdo
package?
> 
> regs,
>  Chris

I obviously was not clear on which xml mime-type suggestions fdo will or will
not include in their package (still not sure what exactly what the distinction
is).  If this is something that shouldn't be included in the fdo package, I'll
contact the gDesklet guys about it.  Either way is fine...however it needs to be
handled.

-Chris
Comment 4 Christophe Fergeau 2004-08-16 07:23:35 UTC
This is up to gDesklet to register its mime types with the shared mime database,
you should file a bug against gDesklet instead.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.