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="<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
Created attachment 273 [details] proposed gdesklet mime type definition
gDesklets currently has its own package. Why should we ship it with the fdo package? regs, Chris
(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
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.