Miriam Ruiz
random thoughts on technology and life











{August 15, 2008}   MIME and file type support for desktops

Some time ago, when I packaged treeline, I wanted to make the package configure the environment so that .trl files would be automatically open with the program. That meant that the package had to configure the MIME types in the desktop to handle that, and assign the new MIME type the selected program. I tried a dozen of things at the time, based on a lot of howto’s that I found, without any success, so I decided to forget about it.

This week I started packaging a new program: Löve, a 2D game development framework based in Lua and OpenGL. Many of the games developed for this platform are distributed as a zip file with the extension .love, so I decided I wanted to try again the MIME stuff. After many unsuccessful tries, I found a package that gave me some hints on how to do it: chemical-mime-data. After having a look at it, I was able to prepare a proof of concept that did what I wanted. It is supposed to work, at least, in GNOME, KDE and ROX. In case someone else is interested, here is the code:



Sam Morris says:

FYI, you do not need to bother putting files in /usr/share/mime-info. This directory was used by ancient (pre-2.8) version of GNOME for mime information, but since then it has been obsolete.



Charles Plessy says:

Hi Miriam,

Have you looked at http://wiki.debian.org/MimeTypesSupport ?

Do not hesitate to enhance it with new findings !

Have a nice day,


Charles



PICCORO says:

hi mirian i know u speak spanish so…

buenas, mirian, ya he leido mucho tu blog y lo sabes bien, puesto que esta ya claro que es de lectura casi obligatoria debido a los temas interesantes y relativos que trata..

soy mantainer de venenux y nunca habia visto el trabajo de equipo listo, b¡viaje y vi el resultado y he querido compartirlo y escuchar las opiniones, es una distro y creo la mejor distro multimedia.. por favor echale un vistazo..

za href=”http://venenux.blogspot.com/2008/02/descarga-tu-venenux-gnulinux-ver-05.html”>http://venenux.blogspot.com/



PICCORO says:

upss el link anterior quedo malo.. sorry.. es la 0.6 nueva la terminamos anoche..
http://venenux.blogspot.com/



DrMARIO says:

Saludos quisiera aclarar que la web de VENENUX GNU/Linux es http://venenux.org y no venenux.blogspot.com ese blog fue de uso oficial hace tiempo pero a pasado a manos del señor piccoro que haciendo caso omiso de los deseos de la comunidad y el equipo de venenux lo usa de careta y de portal.

Ademas la nueva version es 0.8 Rc 3



Leave a Reply


about

This is a personal webpage that belongs to Miriam Ruiz.
If you want to contact her, you can do at:
webmistress(at)miriamruiz(dot)es.

pages
categories
archive
twitter
calendar
August 2019
M T W T F S S
« Nov    
 1234
567891011
12131415161718
19202122232425
262728293031  
credits
WikiLeaks

La Lista de Sinde